GithubHelp home page GithubHelp logo

Comments (16)

userquin avatar userquin commented on August 19, 2024

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.

 avatar commented on August 19, 2024

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.

userquin avatar userquin commented on August 19, 2024

just check our package.json, I had the same problem yesterday ;)...

Can you show me your package.json?

from vite-ssg.

userquin avatar userquin commented on August 19, 2024

upps, vue2, maybe you need to up also the vite-plugin-vue2...

from vite-ssg.

userquin avatar userquin commented on August 19, 2024

I'm testing rigth now for an issue on vite-plugin-pwa... Are you using vue-demi?

from vite-ssg.

 avatar commented on August 19, 2024
"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.

userquin avatar userquin commented on August 19, 2024

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.

 avatar commented on August 19, 2024

I've been running the same command, pnpm update --latest
I;ll deepdive in package.json

from vite-ssg.

 avatar commented on August 19, 2024

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.

antfu avatar antfu commented on August 19, 2024

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.

 avatar commented on August 19, 2024

I'm testing rigth now for an issue on vite-plugin-pwa... Are you using vue-demi?

I never installed vue-demi, it came as part of vitesse.

from vite-ssg.

 avatar commented on August 19, 2024

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.

antfu avatar antfu commented on August 19, 2024

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.

 avatar commented on August 19, 2024

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.

userquin avatar userquin commented on August 19, 2024

@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.

 avatar commented on August 19, 2024

@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)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.