primefaces / primevue-nuxt-module

MIT License
73 stars 11 forks source link

[worker reload] [worker init] Cannot find module '/Users/xxx/node_modules/primevue/base/style' imported from /Users/xxx/.nuxt/dev/index.mjs #7

Closed alterhu2020 closed 1 year ago

alterhu2020 commented 1 year ago

nuxt.config.ts

export default defineNuxtConfig({
    srcDir: "src/",
    ssr: false,
    devtools: { enabled: true },
    css: ["primevue/resources/themes/bootstrap4-light-blue/theme.css"],
    modules: ["@nuxtjs/tailwindcss", "nuxt-primevue"],
    // nuxt plugins
    primevue: {
        usePrimeVue: true,
        options: {
            ripple: true
        },
        components: {
            include: '*',
        },
        composables: {
            include: '*',
        },
        directives: {
            include: '*',
        }
    }
});

when run yarn run dev, it throws exception:

 WARN  "primevue/carousel/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/galleria/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/confirmdialog/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/blockui/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/tabmenu/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/message/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/progressspinner/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/tag/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/toast/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/terminal/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/avatargroup/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/tooltip/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/badge/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/inplace/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  WARN  "primevue/scrolltop/style" is imported by "virtual:#primevue-style", but could not be resolved – treating it as an external dependency.

[9:38:19 PM]  ERROR  [worker reload] [worker init] Cannot find module '/Users/xxx/node_modules/primevue/base/style' imported from /Users/xxx/.nuxt/dev/index.mjs
mertsincan commented 1 year ago

Hi,

Which PrimeVue version are you using?

mertsincan commented 1 year ago

I think this issue is related to PrimeVue version. Please try the latest PrimeVue version. If the problem persists, please reopen this ticket. Thanks a lot for your understanding!

Best Regards,

timdamen commented 2 months ago

Hi @mertsincan,

I think I might have ran into the same problem. I've been struggeling for two days now.

I've opened a new public repo with my problem. The same warnings are shown locally and in the CI action pipeline. But only in the pipeline while running playwright the build seems to fail on it.

Link to CI action pipeline log: https://github.com/timdamen/clappform-frontend/actions/runs/10425275618/job/28875813446

Link to repo: https://github.com/timdamen/clappform-frontend

Hope you can help me out. If I need to create a new issue let me know.