Closed dalenguyen closed 1 month ago
This might also be helpful: https://github.com/nrwl/nx/issues/22410
Nitro and Nx don’t play together perfectly yet
Thanks, @brandonroberts & @goetzrobin. Brandon suggestion works!
Thanks @goetzrobin. Maybe we could make a small nitro module that does what's suggested there if a tsconfig.base.json
exists. People have ran into this a few times
Please provide the environment you discovered this bug in.
Here is the repo: https://github.com/dalenguyen/pdfun
I was trying to use Nx lib in server > routes, but it doesn't allow me to.
The Nx lib import:
import { openai } from '@pdfun/ai'
Which area/package is the issue in?
vite-plugin-nitro
Description
I was trying to import a service from Nx lib to server route, however, it looks like that the server doesn't recognize the path from Nx lib. It works with Angular component though.
Please provide the exception or error you saw
Other information
It looks like the
index.mjs
thinks that the Nx lib (@pdfun/ai) is an NPM package instead of a file location.This is my vite.config.ts:
I would be willing to submit a PR to fix this issue