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

fix: Error: Unknown file extension: [...]node_modules/pathe/dist/index.cjs #735

Closed
ulfgebhardt opened this issue Jan 4, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ulfgebhardt
Copy link

ulfgebhardt commented Jan 4, 2023

🐛 The bug
What isn't working? Describe what the bug is.

Using the version 0.33.x of @nuxtjs/composition-api results in module resolution errors on our end.

image

This seems to be the case because of the usage of pathe.
The version 0.32.0 works as expected. pathe seems not to be present there.

🛠️ To reproduce
Steps to reproduce the behavior:

I cannot offer a repro, just have a link of a Open-Source Software where it works, and where it doesnt work

Not working: Ocelot-Social-Community/Ocelot-Social@be41815
See Build Error on CI: https://github.com/Ocelot-Social-Community/Ocelot-Social/actions/runs/3838022136/jobs/6533996209

Working: Ocelot-Social-Community/Ocelot-Social@3889204

I can offer to test things if that helps.

Node Version is 16.19 and 19.3 with the same behaviour.

🌈 Expected behaviour
What did you expect to happen? Is there a section in the docs about this?

I expected paradise on the latest version but found it a version earlier

ℹ️ Additional context
Add any other context about the problem here.

If this issue does not provide enough information due to the missing repro consider to just close it.

@ulfgebhardt ulfgebhardt added the bug Something isn't working label Jan 4, 2023
@Tirokk
Copy link

Tirokk commented Jan 5, 2023

Thanks for caring and offer a solution @ulfgebhardt 👍🏼

@rchl
Copy link
Member

rchl commented Mar 30, 2023

Nuxt handles *.cjs files from version 2.16.0 so you might have to update your project to at least that version.

Otherwise you'd have to manually apply a fix similar to nuxt/nuxt#10340 to make it work.

@rchl rchl closed this as completed Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants