NestedLink
NestedLink copied to clipboard
Module not found: Can't resolve 'tslib'
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