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 find module '...node_modules/tslib/modules/index.js' imported from chunks/app/server.mjs #209

Open
ssyberg opened this issue Jun 12, 2023 · 2 comments

Comments

@ssyberg
Copy link

ssyberg commented Jun 12, 2023

This specifically started when tslib was upgraded past 2.5.1 and downgrading it back to 2.5.1 solves it. I don't understand the interplay between this package and (in my case) nuxt / nuxt/apollo to speak to anything further, hoping someone who has a better handle on this can figure it out!

Steps to reproduce:

  1. Install a fresh nuxt app
  2. Add nuxt apollo (https://apollo.nuxtjs.org/)
  3. Build and serve
  4. Navigate anywhere and you get the above error

Now if you explicitly downgrade to 2.5.1 in your package.json and follow steps 3 and 4 everything works!

@ssyberg
Copy link
Author

ssyberg commented Jun 12, 2023

I lost a full day to this, hope this helps someone else who stumbles on it!

@georgelucasgp
Copy link

resolved

export default defineNuxtConfig({
build:{
transpile: ['tslib'],
},
})

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