Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run repo locally: "Pre-transform error: Failed to resolve import "C:DevGithubpublicprimefacesprimevue-tailwindpresetslara" from "virtual:nuxt:C:/Dev/Github/public/primefaces/primevue-tailwind/.nuxt/primevue-plugin.mjs". Does the file exist?" #235

Closed
OliverRC opened this issue Apr 30, 2024 · 1 comment

Comments

@OliverRC
Copy link

I have tried to run the repo locally to see if I cannot help address another issue I am facing.
primefaces/primevue#5650

However, running npm run dev throws the following error:

Pre-transform error: Failed to resolve import "C:DevGithubpublicprimefacesprimevue-tailwindpresetslara" from "virtual:nuxt:C:/Dev/Github/public/primefaces/primevue-tailwind/.nuxt/primevue-plugin.mjs". Does the file exist?

I've tried Node 18 and 20, and I"ve tried updating Nuxt too but the same result

@atakantepe
Copy link
Member

Hi, this error is from the nuxt.config.js
If you are using Windows, you need to change the importPT like this:

importPT: { as: 'Lara', from: '~/presets/lara' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants