Skip to content

Cannot find Module imported from node modules #5361

Closed Answered by derHodrig
derHodrig asked this question in Q&A
Discussion options

You must be logged in to vote

Ahhh i messed up...
In the nuxt config you can adress vite and nitro config. both have rollup options.

I thought the solution would be somewhere with that externals in the rollup options. In the qs-ui library i got this

external: ['vue', 'vuetify/lib', 'axios', 'devextreme', 'devextreme-vue/data-grid'],

and for the nuxt app its more or less equal but its meant for the nitro server
https://nitro.unjs.io/config#rollup

So to fix that issue, i have to name all external libs which make issues (i cant explain the "magic" behind it...)

Nuxt Config of the nuxt app

...
nitro: {
    rollupConfig: {
      external: ['devextreme', 'devextreme-vue/data-grid', 'devextreme/core/config']
    }
  },
...

w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by derHodrig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant