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

2.16.8 missing node_modules\quasar\wrappers\index.cjs #17435

Closed
x900603 opened this issue Aug 13, 2024 · 6 comments
Closed

2.16.8 missing node_modules\quasar\wrappers\index.cjs #17435

x900603 opened this issue Aug 13, 2024 · 6 comments

Comments

@x900603
Copy link

x900603 commented Aug 13, 2024

What happened?

yarn dev
failed

image
here is missing index.cjs

What did you expect to happen?

yarn dev
success

i guess here need have index.cjs

Reproduction URL

https://github.com/x900603/q-w2

How to reproduce?

yarn create quasar

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

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

Platforms/Browsers

Chrome

Quasar info output

D:\test\q-w2>yarn dev
yarn run v1.22.22
$ quasar dev

 .d88888b.
d88P" "Y88b
888     888
888     888 888  888  8888b.  .d8888b   8888b.  888d888
888     888 888  888     "88b 88K          "88b 888P"
888 Y8b 888 888  888 .d888888 "Y8888b. .d888888 888
Y88b.Y8b88P Y88b 888 888  888      X88 888  888 888
 "Y888888"   "Y88888 "Y888888  88888P' "Y888888 888
       Y8b


 Dev mode.................. spa
 Pkg quasar................ v2.16.8
 Pkg @quasar/app-webpack... v3.13.3
 Pkg webpack............... v5
 Debugging................. enabled

 Configured browser support (>= 84.44% of global marketshare):
 · Chrome for Android >= 127
 · Firefox for Android >= 127
 · Android >= 127
 · Chrome >= 118
 · Edge >= 124
 · Firefox >= 120
 · iOS >= 16.3
 · Opera >= 107
 · Safari >= 16.6

Error: Cannot find module 'D:\test\q-w2\node_modules\quasar\wrappers\index.cjs'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1182:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1170:15)
    at resolveExports (node:internal/modules/cjs/loader:592:14)
    at Module._findPath (node:internal/modules/cjs/loader:669:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1131:27)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (D:\test\q-w2\quasar.config.js:15:23)
    at Module._compile (node:internal/modules/cjs/loader:1358:14) {
  code: 'MODULE_NOT_FOUND',
  path: 'D:\\test\\q-w2\\node_modules\\quasar\\package.json'
}

 App • ⚠️   FAIL  quasar.config.js has JS errors

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Relevant log output

D:\test>yarn create quasar
yarn create v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-quasar@1.9.0" with binaries:
      - create-quasar


 .d88888b.
d88P" "Y88b
888     888
888     888 888  888  8888b.  .d8888b   8888b.  888d888
888     888 888  888     "88b 88K          "88b 888P"
888 Y8b 888 888  888 .d888888 "Y8888b. .d888888 888
Y88b.Y8b88P Y88b 888 888  888      X88 888  888 888
 "Y888888"   "Y88888 "Y888888  88888P' "Y888888 888
       Y8b

√ What would you like to build? » App with Quasar CLI, let's go!
√ Project folder: ... q-w2
√ Pick Quasar version: » Quasar v2 (Vue 3 | latest and greatest)
√ Pick script type: » Typescript
√ Pick Quasar App CLI variant: » Quasar App CLI with Webpack (stable | v3)
√ Package name: ... q-w2
√ Project product name: (must start with letter if building mobile apps) ... Quasar App
√ Project description: ... A Quasar Project
√ Author: ... x900603
√ Pick a Vue component style: » Composition API with <script setup>
√ Pick your CSS preprocessor: » Sass with SCSS syntax
√ Check the features needed for your project: » Linting (ESLint), State Management (Pinia), axios, vue-i18n
√ Pick an ESLint preset: » Prettier

 Quasar • Generating files...

 - babel.config.cjs
 - postcss.config.cjs
 - quasar.config.js
 - README.md
 - .editorconfig
 - .gitignore
 - .npmrc
 - package.json
 - tsconfig.json
 - public/favicon.ico
 - src/App.vue
 - src/env.d.ts
 - src/index.template.html
 - src/quasar.d.ts
 - src/shims-vue.d.ts
 - .vscode/extensions.json
 - .vscode/settings.json
 - public/icons/favicon-128x128.png
 - public/icons/favicon-16x16.png
 - public/icons/favicon-32x32.png
 - public/icons/favicon-96x96.png
 - src/assets/quasar-logo-vertical.svg
 - src/boot/.gitkeep
 - src/components/EssentialLink.vue
 - src/components/ExampleComponent.vue
 - src/components/models.ts
 - src/layouts/MainLayout.vue
 - src/pages/ErrorNotFound.vue
 - src/pages/IndexPage.vue
 - src/router/index.ts
 - src/router/routes.ts
 - src/css/app.scss
 - src/css/quasar.variables.scss
 - src/boot/axios.ts
 - src/boot/i18n.ts
 - src/i18n/index.ts
 - src/i18n/en-US/index.ts
 - .eslintignore
 - .eslintrc.cjs
 - .prettierrc
 - src/stores/example-store.ts
 - src/stores/index.ts
 - src/stores/store-flag.d.ts

 Quasar •  SUCCESS  • The project has been scaffolded

√ Install project dependencies? (recommended) » Yes, use yarn

yarn install v1.22.22
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning eslint > @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
warning eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
warning eslint > file-entry-cache > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning @quasar/app-webpack > webpack-chain@6.5.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
warning @quasar/app-webpack > webpack-dev-server > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning @quasar/app-webpack > fork-ts-checker-webpack-plugin > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning @quasar/app-webpack > archiver > archiver-utils > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning @quasar/app-webpack > archiver > zip-stream > archiver-utils > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning @quasar/app-webpack > fork-ts-checker-webpack-plugin > memfs@3.6.0: this will be v4
warning @quasar/app-webpack > webpack-dev-server > webpack-dev-middleware > memfs@3.6.0: this will be v4
warning @quasar/app-webpack > cssnano > cssnano-preset-default > postcss-svgo > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@typescript-eslint/eslint-plugin > ts-api-utils@1.3.0" has unmet peer dependency "typescript@>=4.2.0".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 99.30s.


yarn run v1.22.22
$ eslint --ext .js,.ts,.vue ./ --fix
Done in 9.75s.


warning: in the working copy of '.editorconfig', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.eslintignore', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.eslintrc.cjs', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.gitignore', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.npmrc', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.prettierrc', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.vscode/extensions.json', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.vscode/settings.json', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'babel.config.cjs', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'package.json', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'postcss.config.cjs', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'quasar.config.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/App.vue', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/assets/quasar-logo-vertical.svg', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/boot/axios.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/boot/i18n.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/components/EssentialLink.vue', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/components/ExampleComponent.vue', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/components/models.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/css/app.scss', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/css/quasar.variables.scss', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/env.d.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/i18n/en-US/index.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/i18n/index.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/index.template.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/layouts/MainLayout.vue', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/pages/ErrorNotFound.vue', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/pages/IndexPage.vue', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/quasar.d.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/router/index.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/router/routes.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/shims-vue.d.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/stores/example-store.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/stores/index.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/stores/store-flag.d.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'tsconfig.json', LF will be replaced by CRLF the next time Git touches it
 Quasar • Initialized Git repository 🚀

 To get started:

   cd q-w2
   quasar dev # or: yarn quasar dev # or: npx quasar dev

 Documentation can be found at: https://v2.quasar.dev

 Quasar is relying on donations to evolve. We'd be very grateful if you can
 read our manifest on "Why donations are important": https://v2.quasar.dev/why-donate
 Donation campaign: https://donate.quasar.dev
 Any amount is very welcome.
 If invoices are required, please first contact Razvan Stoenescu.

 Please give us a star on Github if you appreciate our work:
   https://github.com/quasarframework/quasar

 Enjoy! - Quasar Team

Done in 205.73s.

Additional context

2.16.7 is good

D:\test\q-w2>yarn global list
yarn global v1.22.22
info "@quasar/cli@2.4.1" has binaries:
   - quasar
info "@vue/cli@5.0.8" has binaries:
   - vue
info "create-quasar@1.9.0" has binaries:
   - create-quasar
info "create-vite@5.4.0" has binaries:
   - create-vite
   - cva
Done in 2.19s.
@x900603 x900603 added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Aug 13, 2024
@github-actions github-actions bot added area/cli bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-webpack labels Aug 13, 2024
@FadhiliNjagi
Copy link

FadhiliNjagi commented Aug 13, 2024

Hi. Are you using type: "module" in your package.json by any chance?

@yusufkandemir yusufkandemir added bug/0-needs-info Need more info to reproduce and removed bug/1-repro-available A reproduction is available and needs to be confirmed. labels Aug 13, 2024
@yusufkandemir
Copy link
Member

Could not reproduce with yarn 1.22.19 and Node v20.16.0.

Please fill the issue report properly. quasar info output is missing. You should put the stuff there into relevant log output instead. The reproduction URL you've used is just to trick our system, to trick us, to trick the people trying to help you.

@yusufkandemir yusufkandemir closed this as not planned Won't fix, can't repro, duplicate, stale Aug 13, 2024
@FadhiliNjagi
Copy link

FadhiliNjagi commented Aug 13, 2024

@x900603 You could try using a fresh Quasar installation

@x900603
Copy link
Author

x900603 commented Aug 14, 2024

@yusufkandemir I'm sorry
I edited my report
If need more information please let me know

@yusufkandemir
Copy link
Member

It exists in the registry:
https://www.npmjs.com/package/quasar?activeTab=code
image

It exists in the resolved version too:
https://github.com/x900603/q-w2/blob/e1a362bd51f6efd95b82f752a9953779eb610c5b/yarn.lock#L5074C13-L5074C109
image

I would recommend deleting node_modules and reinstalling dependencies. If it still doesn't work, remove both node_modules and yarn.lock and reinstall dependencies. If even that doesn't work, clean yarn cache and repeat the previous steps.

@x900603
Copy link
Author

x900603 commented Aug 14, 2024

After i deleting node_modules and clean yarn cache, all is good.
Thanks!

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

3 participants