You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been migrating my application to use @app-config/main and have everthing working locally / in development but I hit problems when attempting to deploy to vercel. The specific error I am seeing is:
Cannot find module 'asn1.js'
Require stack:
- /var/task/node_modules/openpgp/dist/openpgp.js
- /var/task/node_modules/@app-config/encryption/dist/encryption.js
- /var/task/node_modules/@app-config/encryption/dist/index.js
- /var/task/node_modules/@app-config/main/dist/index.js
Did you forget to add it to "dependencies" in `package.json`?
I'm having a hard time tracking this down but wonder if it's a known/familiar issue when bundling for serverless (my application is remix.run built with vite)?
Alternatively, I am using @app-config but I'm not using encryption for secrets, in that case is it possible to exclude the @app-config/encryption package by say using @app-config/config directly? are potentially mitigating this issue?
The text was updated successfully, but these errors were encountered:
Hi There!
I've been migrating my application to use
@app-config/main
and have everthing working locally / in development but I hit problems when attempting to deploy to vercel. The specific error I am seeing is:I'm having a hard time tracking this down but wonder if it's a known/familiar issue when bundling for serverless (my application is remix.run built with vite)?
Alternatively, I am using
@app-config
but I'm not using encryption for secrets, in that case is it possible to exclude the@app-config/encryption
package by say using@app-config/config
directly? are potentially mitigating this issue?The text was updated successfully, but these errors were encountered: