vue-chart-3 icon indicating copy to clipboard operation
vue-chart-3 copied to clipboard

Cannot find module `chart.js/helpers` imported from `/node_modules`

Open telisjok opened this issue 2 years ago • 0 comments

After updating NUXT to latest version, I tried to build the server and the following errors came up

Nuxt CLI v3.0.0-rc.6-27664440.41d6f37                                                                                                                                                                                                  14:34:38
i Using default Tailwind CSS file from runtime/tailwind.css                                                                                                                                                           nuxt:tailwindcss 14:34:43
i Client built in 55220ms                                                                                                                                                                                                              14:35:42
i Building server...                                                                                                                                                                                                                   14:35:42
√ Server built in 51555ms                                                                                                                                                                                                              14:36:34
√ Generated public .output/public                                                                                                                                                                                                nitro 14:36:34
start Building server...                                                                                                                                                                                                         nitro 14:36:34

 ERROR  Rollup error: Error: Cannot find module chart.js/helpers imported from file:///some_path/node_modules, file:///some_path/node_modules, file:///some_path/node_modules/nitropack/node_modules


 ERROR  Error: Cannot find module chart.js/helpers imported from file:///some_path/node_modules, file:///some_path/node_modules/nuxt/node_modules, file:///some_path/node_modules/nitropack/node_modules

  at resolvePath (/some_path/node_modules/mlly/dist/index.mjs:1078:10)
  at _resolve (/some_path/node_modules/nitropack/dist/chunks/prerender.mjs:303:22)
  at Object.resolveId (/some_path/node_modules/nitropack/dist/chunks/prerender.mjs:347:34)
  at async resolveId (/some_path/node_modules/rollup/dist/es/shared/rollup.js:21713:26)
  at async ModuleLoader.resolveId (/some_path/node_modules/rollup/dist/es/shared/rollup.js:22013:19)
  at async /some_path/node_modules/@rollup/plugin-commonjs/dist/es/index.js:773:14
  at async Promise.all (index 0)
  at async /some_path/node_modules/@rollup/plugin-commonjs/dist/es/index.js:765:30
  at async rewriteRequireExpressionsAndGetImportBlock (/some_path/node_modules/@rollup/plugin-commonjs/dist/es/index.js:1312:28)
  at async transformCommonjs (/some_path/node_modules/@rollup/plugin-commonjs/dist/es/index.js:1874:23)

The app's dependencies' are:

"devDependencies": {
    "@nuxt/types": "^2.15.8",
    "@nuxtjs/tailwindcss": "^5.0.2",
    "@storyblok/vue": "^6.0.1",
    "@tailwindcss/typography": "^0.5.2",
    "axios": "^0.27.2",
    "dotenv": "^16.0.1",
    "nuxt": "npm:nuxt3@latest",
    "postcss": "^8.4.5",
    "sass": "^1.49.11"
  },
  "dependencies": {
    "@hubspot/api-client": "^6.0.1-beta.6",
    "@paypal/paypal-js": "^5.0.6",
    "@stripe/stripe-js": "^1.32.0",
    "@vueform/multiselect": "^2.3.3",
    "@vuelidate/core": "^2.0.0-alpha.34",
    "@vuelidate/validators": "^2.0.0-alpha.26",
    "chartjs-plugin-datalabels": "^2.0.0",
    "floating-vue": "^2.0.0-beta.17",
    "node-fetch": "3.2.4",
    "swiper": "^7.4.1",
    "vue-chart-3": "^3.1.8",
    "vue-gtag-next": "^1.14.0"
  }

Is there a fix for this already that I'm missing out?

telisjok avatar Aug 08 '22 11:08 telisjok