Add support for jsconfig.json
It would be great if ncc supports jsconfig.json out of the box.
jsconfig.jsonis a descendant oftsconfig.json, which is a configuration file for TypeScript.jsconfig.jsonistsconfig.jsonwith"allowJs"attribute set totrue.
Does vercel allow jsconfig.json when building? I have a compilerOptions in my project and that's the only thing preventing me from migrating to vercel.
I tested it and it worked like a charm, at least with my use-case. :)
Anything up with this issue?
I have a NextJS project and I need to be able to manually run a couple of scripts, but I need to use the app codebase (service functions) for them. I'm using jsconfig.json with multiple paths aliases and the NextJS app runs fine. However, when importing an alias, ncc throws the following:
Error: Cannot find module '@utils/storage'
jsconfig.json is in the same folder (project root) as the script I'm trying to run. It just seems that ncc doesn't see jsconfig.json.
Here's my jsconfig.json:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@utils/*": ["utils/*"],
"@utils": ["utils/index"],
}
}
}
I am also facing the same issue, in SignInForm.jsx I imported import signIn from '@myFirebase/auth/SignIn'; and it seems vercel doesn't understand custom paths
./app/sign-in/SignInForm.jsx
--
14:12:28.702 | Module not found: Can't resolve '@myFirebase/auth/SignIn
This is my jsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@myFirebase/*": ["components/firebase/*"],
"@components/*": ["components/*"],
"@styles/*": ["styles/*"]
}
}
}