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

Requires "tslib" manual install #610

Open
Yukigamine opened this issue Nov 9, 2023 · 1 comment
Open

Requires "tslib" manual install #610

Yukigamine opened this issue Nov 9, 2023 · 1 comment

Comments

@Yukigamine
Copy link

Just like in issue #278 I am receiving the Module not found: Can't resolve 'tslib' error until I install tslib.

Luckily it seems that it is only required as a devDependency and the error goes away once installing it there.

@EvHaus
Copy link

EvHaus commented Dec 25, 2023

This is happening for me too. It works fine locally, but when I deploy to Vercel the Vercel builds fail with:

./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nextjs-google-analytics/dist/components/GoogleAnalytics.js:4:0
--
12:10:34.507 | Module not found: Can't resolve 'tslib'
12:10:34.507 |  
12:10:34.508 | https://nextjs.org/docs/messages/module-not-found
12:10:34.508 |  
12:10:34.508 | Import trace for requested module:
12:10:34.508 | ./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nextjs-google-analytics/dist/components/index.js
12:10:34.508 | ./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nextjs-google-analytics/dist/index.js
12:10:34.508 | ./components/Analytics/Analytics.tsx
12:10:34.508 | ./components/Analytics/index.ts
12:10:34.508 | ./pages/_app.page.tsx

To fix this I had to add tslib to my dependencies.

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