Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

__createCJSModule__(...) is not a function #228

Open
amery opened this issue Nov 22, 2021 · 4 comments
Open

__createCJSModule__(...) is not a function #228

amery opened this issue Nov 22, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@amery
Copy link

amery commented Nov 22, 2021

Versions

nuxt-vite: 0.3.5
nuxt: 2.15.8
vuetify: 2.6.0

Reproduction

yarn dev at https://github.com/amery/nuxt-bridge-vuetify and open http://127.0.0.1:3000/

Description

this is basically the standard ssr nuxt2+vuetify2 template, but as soon as I enable nuxt-vite dev mode crashes. nuxt generate and nuxt build work ok.

don't be confused by the repo's name. master hasn't switched to nuxt-bridge yet.

TypeError
__createCJSModule__(...) is not a function

server.js:19800:1 $id_2a824d09
server.js:66218:9 __instantiateModule__
server.js:66153:25 __ssrLoadModule__
server.js:66190:13 ssrImport
server.js:19767:37 $id_d579fa64
server.js:66218:3 async __instantiateModule__
@amery amery added the bug Something isn't working label Nov 22, 2021
@DaanKorver
Copy link

Found a fix yet?

@harunonsystem
Copy link

same error occured.

Probably, if you remove @nuxtjs/axios in nuxt.config.js.

nuxt.config.js

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    // https://go.nuxtjs.dev/axios
    // '@nuxtjs/axios',
    // https://go.nuxtjs.dev/pwa
    // '@nuxtjs/pwa',
  ],

css may be crashed related sass-loader or other.
but this error probalby solved🤔

スクリーンショット 2021-12-21 11 27 14

@harunonsystem
Copy link

harunonsystem commented Dec 25, 2021

plz try yarn add -D nuxt-vite@0.2

it worked :)

package.json

"nuxt-vite": "0.3.5", // before
"nuxt-vite": "0.2",   // after

スクリーンショット 2021-12-25 17 27 51

@amery
Copy link
Author

amery commented Dec 31, 2021

plz try yarn add -D nuxt-vite@0.2

thank you, that solved it for me too

amery added a commit to amery/nuxt-bridge-vuetify that referenced this issue Dec 31, 2021
Signed-off-by: Alejandro Mery <amery@geeks.cl>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants