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

Module not found: Can't resolve 'tslib' #67

Open
uluhonolulu opened this issue Jul 9, 2021 · 0 comments
Open

Module not found: Can't resolve 'tslib' #67

uluhonolulu opened this issue Jul 9, 2021 · 0 comments

Comments

@uluhonolulu
Copy link

I'm getting the "Module not found" build error after installing valueLink and linked-controls in my NextJS project. I have checked the module directory, and ./node_modules/valuelink doesn't have a node_modules subdirectory, so I wonder how it is supposed to work. Are we supposed to have tslib available globally? I believe it's added when you create a CRA project, but it's definitely not present in my NextJs project.

If we need to add it manually, do you want to update your instructions?

Here's the full output:

> [email protected] dev C:\Projects\Galaxias\file-storage-ui
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Using webpack 4. Reason: future.webpack5 option not enabled https://nextjs.org/docs/messages/webpack5
event - compiled successfully
event - build page: /
wait  - compiling...
error - ./node_modules/valuelink/lib/link.js:1:0
Module not found: Can't resolve 'tslib'
null
Could not find files for / in .next/build-manifest.json
Could not find files for / in .next/build-manifest.json
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\swapfile.sys'
event - compiled successfully
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

1 participant