Using Needle projects inside of a monorepo

Install in project via the npmdef button? What if you drag it into the array?

It’s there now

by user 725499871615909899

by user 725499871615909899

by user 725499871615909899

Can you try restarting the server?

Same, tried closing the project and re-opening it

by user 725499871615909899

And what error is that / where is it coming from?

by user 725499871615909899

Do you think you can send some of the files that cause this issue? We can try via the Bugreporter first (via the Needle Engine menu item) because I think i would need to look at the project (the npmdef linking worked in my tests so I’m not sure whats different in your project)

The error messages sound a bit like an issue with vite actually

I’ll put together a test repo that replicates the basic structure of the monorepo with the files in question and share that with you

by user 725499871615909899

thanks a lot

Hey sorry it took me so long

by user 725499871615909899

Basic monorepo, I’ve create a utils package in packages/ that exports a basic schema validator and imported it into the web app and it works,

by user 725499871615909899

It works?

No not working, was describing the github example I have above

by user 725499871615909899

the packge is imported into a different webapp and works there, it doesnt work in the needle project

by user 725499871615909899

Ah ok so to test I would open the project in “apps/needle-test” and add the utils package via the npmdef file and that should then result in the errors you’ve been getting?

yeah that should be it

by user 725499871615909899

I’m not able to reproduce the errors here unfortunately - but adding the npmdef still had some issues with the linked package - I think I fixed them locally but want to test once more