Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quasar may not support adding extensions with scopes, except for “@quasar” #16592

Closed
Junvary opened this issue Nov 15, 2023 · 2 comments
Closed

Comments

@Junvary
Copy link

Junvary commented Nov 15, 2023

What happened?

Quasar may not support adding extensions with scopes, except for “@quasar

What did you expect to happen?

support scoped npm package

Reproduction URL

no need

How to reproduce?

  1. quasar ext add @junvary/qstatistic
  2. quasar dev
  3. [vite] Internal server error: Failed to resolve import "quasar-app-extension-qstatistic/src/boot/register.js" from ".quasar\client-entry.js". Does the file exist?
  4. Manually add “@Junvary”, but it will be reset.

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

Chrome

Quasar info output

Operating System - Windows_NT(10.0.19045) - win32/x64
NodeJs - 18.15.0

Global packages
  NPM - 9.4.0
  yarn - 1.22.19
  @quasar/cli - 2.3.0
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.13.0 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 1.6.2 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.16.7 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.2.47 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.1.6
  pinia - 2.0.36 -- Intuitive, type safe and flexible Store for Vue
  vuex - Not installed
  vite - 2.9.15 -- Native-ESM powered web dev build tool
  eslint - Not installed
  electron - Not installed
  electron-packager - Not installed
  electron-builder - Not installed
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  quasar-app-extension-qhierarchy - 1.0.9 -- A Quasar App Extension
  quasar-app-extension-qcascader - 0.0.5 -- QCascader
  @quasar/quasar-app-extension-qiconpicker - 2.0.7 -- QIconPicker - A Quasar App Extension
  @junvary/quasar-app-extension-qstatistic - 0.0.9 -- QStatistic allows you to display data statistically.

Relevant log output

No response

Additional context

No response

Copy link

Hi @Junvary! 👋

It looks like you provided an invalid or unsupported reproduction URL.
Do not use any service other than Codepen, jsFiddle, StackBlitz, Codesandbox, and GitHub.
Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc.
Please edit your original post above and provide a valid reproduction URL as explained.

Without a proper reproduction, your issue will have to get closed.

Thank you for your collaboration. 👏

@yusufkandemir
Copy link
Member

https://github.com/Junvary/quasar-app-extension-qstatistic/blob/3be3dbb31d3435f94f69b507743dfc198b1094d4/app-extension/src/index.js#L11-L15

conf.boot.push('~quasar-app-extension-qstatistic/src/boot/register.js')
if (api.hasVite !== true) {
  // make sure app extension files & ui package gets transpiled
  conf.build.transpileDependencies.push(/quasar-app-extension-qstatistic[\\/]src/)
}

You are referencing quasar-app-extension-qstatistic yourself, that's the reason it doesn't work. If you update the references, it will work.

@yusufkandemir yusufkandemir closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants