Skip to content

Error: Cannot find module '/home/techlens/WebstormProjects/journey-analytic/libs/stateless/dist' #29883

Open
@dieptv1999

Description

Current Behavior

I create 1 application nestjs + 1 library js stateless

lib stateless build successful

Image

but application backend not import lib

Image

Expected Behavior

successfully imported the library

GitHub Repo

No response

Steps to Reproduce

  1. create repo backend
  2. create library by rollup + vite
  3. add interface ts to lib
  4. use in app

Nx Report

nx report 
The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.

♻️  Generating routes...
⠹ Creating project graph nodes with 9 plugins✅ Processed routes in 330ms

 NX   Report complete - copy this into the issue template

Node           : 18.20.4
OS             : linux-x64
Native Target  : x86_64-linux
npm            : 10.8.3

nx (global)            : 20.2.0
nx                     : 20.3.2
@nx/js                 : 20.3.2
@nx/jest               : 20.3.2
@nx/eslint             : 20.3.2
@nx/workspace          : 20.3.2
@nx/devkit             : 20.3.2
@nx/eslint-plugin      : 20.3.2
@nx/module-federation  : 20.3.2
@nx/nest               : 20.3.2
@nx/node               : 20.3.2
@nx/react              : 20.3.2
@nx/rollup             : 20.3.2
@nx/vite               : 20.3.2
@nx/web                : 20.3.2
@nx/webpack            : 20.3.2
typescript             : 5.6.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/webpack/plugin
@nx/eslint/plugin
@nx/jest/plugin
@nx/vite/plugin
@nx/rollup/plugin

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions