Comments (16)
try to update to latest version 0.11.4
, you have `0.11.2'.
beware, on latest version, we updated to latest versions of vite
and vue
(also vue-router
and useHead
), see package.json
from vite-ssg.
this is the outcome of the update ... complete meltdown π€¦ββοΈ
re-bundling dependencies:
@feathersjs/feathers
@feathersjs/socketio-client
vite-ssg
socket.io-client
pinia
(...and 8 more)
(this will be run only when your dependencies or config have changed)
> node_modules/.pnpm/[email protected]_acebffa845943e7fac8d1e0027afd195/node_modules/vite-ssg/dist/chunk-6HTX7RH6.mjs:31:8: error: No matching
export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "defineComponent"
31 β import {defineComponent} from "vue";
β΅ ~~~~~~~~~~~~~~~
> node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:23:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "defineComponent"
23 β defineComponent,
β΅ ~~~~~~~~~~~~~~~
> node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:24:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "inject"
24 β inject,
β΅ ~~~~~~
> node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:25:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "onBeforeUnmount"
25 β onBeforeUnmount,
β΅ ~~~~~~~~~~~~~~~
> node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:26:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "ref"
26 β ref,
β΅ ~~~
> node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:27:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "watchEffect"
27 β watchEffect
β΅ ~~~~~~~~~~~
> node_modules/.pnpm/[email protected]_acebffa845943e7fac8d1e0027afd195/node_modules/vite-ssg/dist/index.mjs:12:8: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "createSSRApp"
12 β import {createSSRApp, createApp as createClientApp} from "vue";
β΅ ~~~~~~~~~~~~
> node_modules/.pnpm/[email protected]_acebffa845943e7fac8d1e0027afd195/node_modules/vite-ssg/dist/index.mjs:12:22: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "createApp"
12 β import {createSSRApp, createApp as createClientApp} from "vue";
β΅ ~~~~~~~~~
> node_modules/.pnpm/[email protected]_acebffa845943e7fac8d1e0027afd195/node_modules/vite-ssg/dist/index.mjs:13:8: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue-router/dist/vue-router.esm.js" for import "createMemoryHistory"
13 β import {createMemoryHistory, createRouter, createWebHistory} from "vue-router";
β΅ ~~~~~~~~~~~~~~~~~~~
> node_modules/.pnpm/[email protected]_acebffa845943e7fac8d1e0027afd195/node_modules/vite-ssg/dist/index.mjs:13:29: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue-router/dist/vue-router.esm.js" for import "createRouter"
13 β import {createMemoryHistory, createRouter, createWebHistory} from "vue-router";
β΅ ~~~~~~~~~~~~
> node_modules/.pnpm/[email protected]_acebffa845943e7fac8d1e0027afd195/node_modules/vite-ssg/dist/index.mjs:13:43: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue-router/dist/vue-router.esm.js" for import "createWebHistory"
13 β import {createMemoryHistory, createRouter, createWebHistory} from "vue-router";
β΅ ~~~~~~~~~~~~~~~~
error when starting dev server:
Error: Build failed with 11 errors:
node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:23:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "defineComponent"
node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:24:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "inject"
node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:25:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "onBeforeUnmount"
node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:26:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "ref"
node_modules/.pnpm/@[email protected][email protected]/node_modules/@vueuse/head/dist/index.mjs:27:2: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm.js" for import "watchEffect"
...
at failureErrorWithLog (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:1449:15)
at C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:1131:28
at runOnEndCallbacks (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:921:63)
at buildResponseToResult (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:1129:7)
at C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:1236:14
at C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:609:9
at handleIncomingPacket (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:706:9)
at Socket.readFromStdout (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:576:7)
at Socket.emit (node:events:365:28)
at addChunk (node:internal/streams/readable:314:12)
βERRORβ Command failed with exit code 1.
I'm dead
from vite-ssg.
just check our package.json
, I had the same problem yesterday ;)...
Can you show me your package.json
?
from vite-ssg.
upps, vue2
, maybe you need to up also the vite-plugin-vue2
...
from vite-ssg.
I'm testing rigth now for an issue on vite-plugin-pwa
... Are you using vue-demi
?
from vite-ssg.
"dependencies": {
"@feathersjs/adapter-commons": "^4.5.11",
"@feathersjs/authentication-client": "^4.5.11",
"@feathersjs/feathers": "^4.5.11",
"@feathersjs/socketio-client": "^4.5.11",
"@vitejs/plugin-vue-jsx": "^1.1.5",
"@vueuse/core": "^5.0.3",
"@vueuse/head": "^0.6.0",
"feathers-hooks-common": "^5.0.6",
"feathers-pinia": "^0.12.9",
"fs.promises": "^0.1.2",
"js-cookie": "^2.2.1",
"moment": "^2.29.1",
"nprogress": "^0.2.0",
"path": "^0.12.7",
"pinia": "^0.5.2",
"prism-theme-vars": "^0.2.2",
"socket.io-client": "^4.1.2",
"vue": "^2.6.14",
"vue-i18n": "^8.24.4",
"vue-property-decorator": "^9.1.2",
"vue-router": "^3.5.1"
},
"devDependencies": {
"@antfu/eslint-config": "^0.6.6",
"@iconify/json": "^1.1.358",
"@intlify/vite-plugin-vue-i18n": "^2.2.1",
"@types/nprogress": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@vitejs/plugin-vue": "^1.2.3",
"@vue/compiler-sfc": "^3.1.1",
"@vue/composition-api": "^1.0.0-rc.12",
"@vue/server-renderer": "^3.1.1",
"@windicss/plugin-animations": "^1.0.9",
"cross-env": "^7.0.3",
"eslint": "^7.28.0",
"https-localhost": "^4.6.5",
"markdown-it-prism": "^2.1.6",
"pnpm": "^6.7.6",
"scss": "^0.2.4",
"typescript": "^4.3.4",
"vite": "^2.3.7",
"vite-plugin-components": "^0.11.2",
"vite-plugin-icons": "^0.6.2",
"vite-plugin-md": "^0.6.7",
"vite-plugin-pages": "^0.13.1",
"vite-plugin-pwa": "^0.8.1",
"vite-plugin-vue-layouts": "^0.3.1",
"vite-plugin-windicss": "^1.0.4",
"vite-ssg": "^0.11.4",
"vue-tsc": "^0.1.7"
}
from vite-ssg.
just compare with vite-ssg
versions: I think pinia
also needs to be upgraded.
See package.json
history...
0.11.3
=> was wrong
c001237#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
and 0.11.4
=> updated typescrupt
+ pinia
bb58f7d#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
from vite-ssg.
I've been running the same command, pnpm update --latest
I;ll deepdive in package.json
from vite-ssg.
Okay, so far this what I got, it still broken but seems less errors.
Here is the console log:
$ pnpm dev
> [email protected] dev C:\Users\wahbe\Documents\GitHub\waelio.com
> vite --port 3333 --open
Pre-bundling dependencies:
@feathersjs/feathers
@feathersjs/socketio-client
socket.io-client
vite-ssg
pinia
(...and 8 more)
(this will be run only when your dependencies or config have changed)
> node_modules/.pnpm/@[email protected][email protected]/node_modules/@vue/composition-api/dist/vue-composition-api.esm.js:1:7: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"
1 β import Vue from 'vue';
β΅ ~~~
error when starting dev server:
Error: Build failed with 1 error:
node_modules/.pnpm/@[email protected][email protected]/node_modules/@vue/composition-api/dist/vue-composition-api.esm.js:1:7: error: No matching export in "node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"
at failureErrorWithLog (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:1449:15)
at C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:1131:28
at runOnEndCallbacks (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:921:63)
at buildResponseToResult (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:1129:7)
at C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:1236:14
at C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:609:9
at handleIncomingPacket (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:706:9)
at Socket.readFromStdout (C:\Users\wahbe\Documents\GitHub\waelio.com\node_modules\.pnpm\e[email protected]\node_modules\esbuild\lib\main.js:576:7)
at Socket.emit (node:events:365:28)
at addChunk (node:internal/streams/readable:314:12)
βERRORβ Command failed with exit code 1.
Here is the new package dependencies
"scripts": {
"dev": "vite --port 3333 --open",
"build": "cross-env NODE_ENV=production vite-ssg build",
"preview": "vite preview",
"preview-https": "serve dist"
},
"dependencies": {
"@feathersjs/adapter-commons": "^4.5.11",
"@feathersjs/authentication-client": "^4.5.11",
"@feathersjs/feathers": "^4.5.11",
"@feathersjs/socketio-client": "^4.5.11",
"@vitejs/plugin-vue-jsx": "^1.1.5",
"@vueuse/core": "^5.0.3",
"@vueuse/head": "^0.6.0",
"feathers-hooks-common": "^5.0.6",
"feathers-pinia": "^0.12.9",
"fs.promises": "^0.1.2",
"js-cookie": "^2.2.1",
"moment": "^2.29.1",
"nprogress": "^0.2.0",
"path": "^0.12.7",
"pinia": "0.5.2",
"prism-theme-vars": "^0.2.2",
"socket.io-client": "^4.1.2",
"vue-i18n": "^8.24.4",
"vue-property-decorator": "^9.1.2"
},
"devDependencies": {
"@antfu/eslint-config": "^0.6.6",
"@iconify/json": "^1.1.358",
"@intlify/vite-plugin-vue-i18n": "^2.2.1",
"@types/nprogress": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@vitejs/plugin-vue": "^1.2.3",
"@vue/compiler-sfc": "^3.1.1",
"@vue/composition-api": "^1.0.0-beta.1",
"@vue/server-renderer": "^3.1.1",
"@windicss/plugin-animations": "^1.0.9",
"cross-env": "^7.0.3",
"eslint": "^7.28.0",
"https-localhost": "^4.6.5",
"markdown-it-prism": "^2.1.6",
"pnpm": "^6.7.6",
"scss": "^0.2.4",
"typescript": "^4.3.4",
"vite": "^2.3.7",
"vite-plugin-components": "^0.11.2",
"vite-plugin-icons": "^0.6.2",
"vite-plugin-md": "^0.6.7",
"vite-plugin-pages": "^0.13.1",
"vite-plugin-pwa": "^0.8.1",
"vite-plugin-vue-layouts": "^0.3.1",
"vite-plugin-windicss": "^1.0.4",
"vite-ssg": "^0.11.4",
"vue": "3.1.1",
"vue-demi": "^0.9.1",
"vue-router": "^4.0.9",
"vue-tsc": "^0.1.7"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-beta.1",
"vue": "2.6.14"
}
from vite-ssg.
Please make sure you are using them same target Vue version for your dependencies first. (also note vite-ssg does not support Vue 2)
from vite-ssg.
I'm testing rigth now for an issue on
vite-plugin-pwa
... Are you usingvue-demi
?
I never installed vue-demi, it came as part of vitesse.
from vite-ssg.
Please make sure you are using them same target Vue version for your dependencies first. (also note vite-ssg does not support Vue 2)
looking at my package.json do you see conflicting versions?
I don't need vue2 in anything I am doing, nevertheless, it seems that pinia and feathers-pinia are refencing [email protected] that's why added them as peer dependencies
from vite-ssg.
https://github.com/posva/pinia#pinia you will need v2.0 for Vue 3 support.
GitHub Issues are for bug report and tracking. Please use Discord or StackOverflow to ask questions.
from vite-ssg.
Here is the outcome of a build command:
[vite-plugin-pwa] 'default' is not exported by node_modules\.pnpm\[email protected]\node_modules\vue\dist\vue.runtime.esm-bundler.js, imported by node_modules\.pnpm\@[email protected][email protected]\node_modules\@vue\composition-api\dist\vue-composition-api.esm.js file: C:/Users/wahbe/Documents/GitHub/waelio.com/node_modules/.pnpm/@[email protected][email protected]/node_modules/@vue/composition-api/dist/vue-composition-api.esm.js:1:7 1: import Vue from 'vue'; ^ 2: 3: var toString = function (x) { return Object.prototype.toString.call(x); };
from vite-ssg.
@waelio If you are using the vue
virtual module of pwa plugin, just try to add the mixin described on the issue open on the pwa repo, the problem should be gone.
vite-pwa/vite-plugin-pwa#81 (comment)
from vite-ssg.
@waelio If you are using the
vue
virtual module of pwa plugin, just try to add the mixin described on the issue open on the pwa repo, the problem should be gone.
My problem was calling feathers which uses sockets.
After discussion with the feathers team they told me I can't use sockets in my service worker's.
I am creating a new 'useSubscriptions.ts' uses events.
I'll post the solution once it's ready and tested. In the meanwhile it's not a bad idea to somehow let other know.
Thanks
from vite-ssg.
Related Issues (20)
- lottie-web build ssg ζ₯ιΞ© HOT 1
- Support stripe-away slot of `ClientOnly` on SSG
- add quasar 2.14.0 with vite 5.0.0 pnpm build failed
- Inferred type of createApp HOT 2
- let headers = new Headers() returning undefined in @servicestack node modules
- Cannot import CommonJS module
- Implement optional route parameters
- issue with build
- Cannot access the right router HOT 1
- Can'not build with vue-select HOT 1
- SSG for just home page? HOT 1
- build exception when add jsx support and change all vue to jsx.
- re-rendering issues
- fetch gives 'ERR_INVALID_URL' HOT 1
- using build.rollupOptions.output.manualChunks
- Adding ClientOnly to any part of the App.Vue gives an empty error HOT 1
- html-minifier high security vulnerability HOT 5
- SyntaxError: Cannot use import statement outside a module HOT 3
- How to remove crossorigin from html tags? HOT 1
- Vite-ssg build error in SSR step HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-ssg.