Skip to content

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

@uluhonolulu

Description

@uluhonolulu

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:

> file-storage-ui@0.1.0 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions