Cannot find module '...node_modules/tslib/modules/index.js' imported from chunks/app/server.mjs
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- nuxt, typescript
- Domain
- build-system
Research direction
Reproduce the issue with a fresh Nuxt app, nuxt apollo, and tslib newer than 2.5.1, then build, serve, and navigate to trigger the missing modules/index.js error. Compare the result with tslib 2.5.1 and inspect the generated chunks/app/server.mjs and package resolution. Done means the app builds and serves successfully without requiring the downgrade.
Written by the indexing model from the issue text.
Description
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:
- Install a fresh
nuxtapp - Add nuxt apollo (https://apollo.nuxtjs.org/)
- Build and serve
- 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!
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/tslib
-
Difficulty 1/5 Under an hour Newbie friendliness 1/100
-
question
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
LucasSantana-Dev/Lucky#2637 ·
Maintainers usually reply within 1 day
-
Show the error reference on the error pagePossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
tomjn/coilbox-hub#454 ·
Maintainers usually reply within 1 day
-
frontend
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
icssc/peterportal-client#1224 · 1 comment ·
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day