We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm fairly sure this is a now dev problem because I ran into this error converting a previously working endpoint to a now serverless function.
The build is failing on export * from '.', inside a library import.
export * from '.'
I've created a MVCE here: https://github.com/HorizonShadow/now-error-mcve
Running now dev, and navigating to localhost:3000/api/test will produce
now dev
localhost:3000/api/test
> Built @now/node@latest:api/test.ts [8s] Cannot find module '.' Did you forget to add it to "dependencies" in `package.json`?
The text was updated successfully, but these errors were encountered:
require('.')
typegoose
Hi @HorizonShadow
Thanks for reporting this issue.
I've identified the root cause and created an issue here: vercel/nft#66
Sorry, something went wrong.
@styfle when does this get out to an NPM release?
It's available in the canary channel today. npm i -g now@canary or if you are using builders you can change now.json to @now/node@canary.
npm i -g now@canary
@now/node@canary
It will be available soon on the stable channel.
@styfle thanks. Canary works nicely.
Successfully merging a pull request may close this issue.
I'm fairly sure this is a now dev problem because I ran into this error converting a previously working endpoint to a now serverless function.
The build is failing on
export * from '.'
, inside a library import.I've created a MVCE here: https://github.com/HorizonShadow/now-error-mcve
Running
now dev
, and navigating tolocalhost:3000/api/test
will produceThe text was updated successfully, but these errors were encountered: