Vite: libs in nx repo does not work with vite
See original GitHub issueDescribe the bug
when i try to import a library in the nx repo (from /libs
dir) it says the file does not exist. I imported it with compilerOptions.paths but i’ve also tried normal import
To Reproduce Steps to reproduce the behavior:
- create a nx monorepo with
create-nx-workspace
- create a vite react app with this plugin
- create a react library with the standart
@nrwl/react
command - import it to the vite app
Expected behavior
That the lib does import and will work as expected
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Vite application can't use prisma if it's imported via a library
Current Behavior For projects using the vite bundler and prisma it's not possible to use enums within a vite application if it's imported...
Read more >Work with Vite and NX - Medium
This practical post will help you combine Vite with the NX monorepo tool. Follow those steps and you'll see it working as expected....
Read more >@nrwl/vite | Nx
The Nx plugin for Vite and Vitest. Vite.js is a build tool that aims to provide a faster and leaner development experience for...
Read more >nx-vue3-vite - npm
Start using nx-vue3-vite in your project by running `npm i ... this issue is resolved: https://github.com/samatechtw/nx-vue3-vite/issues/35.
Read more >Nx 15.3 — Standalone Projects, Vite, Task Graph and more!
For most of our workforce, working on Nx and Nx Cloud was only part of ... you don't have the typical apps and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can you put together a demo repo. I’ll take a look at it.
No problem. Happy to help send you the config you need for this one if you need it. It fully support nx libs