Closed lukolszewski closed 1 week ago
A change to main package.json resolves it. Specifically when all dependencies are changed from this: "nuxt": "^2.15.8" to this: "nuxt": "2.15.8"
It makes yarn use the correct versions. I've tried this on ubuntu 20.04 as mentioned and latest arch. Multiple versions of Node. yarn installed with npm. If this is not a bug in yarn, but desired behavior I suggest the file is updated to remove those marks.
What happened?
Trying to run yarn dev following init as per the quickstart results in the following errors shown below on the terminal. The same errors are shown when browsing to the shopware-pwa. I tried few different node versions, but I could only get it to work that far with 16.10.0 so this is the one that is being used now. This is on a fresh ubuntu 20.04 docker image. Node and yarn installer with nvm.
root@XX:/home/pwa# yarn dev yarn run v1.22.19 $ shopware-pwa dev [CLI > dev] Starting Shopware PWA development project... ✔ [CLI > plugins] Generating plugins files [CLI > languages] Shopware languages refreshed [CLI > plugins] Plugins generated [CLI > cms] CMS prepared [CLI > languages] Shopware languages refreshed ℹ Using theme: @shopware-pwa/default-theme 17:30:35 ℹ "notifications.js" plugin was registered automatically in client&server mode. 17:30:35
╭───────────────────────────────────────────╮ │ │ │ Nuxt @ v2.16.3 │ │ │ │ ▸ Environment: development (dev) │ │ ▸ Rendering: server-side │ │ ▸ Target: server │ │ │ │ Listening: http://192.168.1.118:3000/ │ │ │ ╰───────────────────────────────────────────╯
ℹ Preparing project for development 17:30:35 ℹ Initial build may take a while 17:30:35 ✔ Builder initialized 17:30:35 ✔ Nuxt files generated 17:30:35
✖ Client Compiled with some errors in 23.64s
✔ Server Compiled successfully in 21.76s
ERROR Failed to compile with 14 errors friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'computed' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'getCurrentInstance' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'inject' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'isReactive' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'isReadonly' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'isRef' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'nextTick' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'onBeforeMount' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'onBeforeUnmount' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'provide' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'reactive' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'ref' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/validators/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'unref' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59
ERROR in ./node_modules/@vuelidate/core/dist/index.mjs friendly-errors 17:30:59
Can't import the named export 'watch' from non EcmaScript module (only default export is available) friendly-errors 17:30:59 friendly-errors 17:30:59 No issues found. 17:30:59 ℹ Waiting for file changes 17:31:00 ℹ Memory usage: 498 MB (RSS: 833 MB) 17:31:00 ℹ Listening on: http://192.168.1.118:3000/
Steps To Reproduce
Run a dockware 6.4.10.0 container, install latest (3.3) swag plugin.
On the fresh Ubuntu 20.04 docker image with host networking install nvm, install node 16.10 and yarn, then run: mkdir pwa cd pwa npx @shopware-pwa/cli init _answerquestions yarn dev
Is there an existing issue for this?
Version
Canary (generated by CLI)
Which element is affected?
nuxt-module
Environment
Relevant log output