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
Hey there!
I stumbled across an error that I am not sure if the problem lies here or on serverless-bundle repository.
The thing is that I am trying to setup up a serverless project with minimum configuration since I lack the deep knowledge to set up a packaging workflow properly.
I have this repository already set up to reproduce the issue.
When trying to package a project using TypeDORM, the bundling returns the following error.
After following this error around and also checking out the examples here on how to bundle with webpack, I've managed to fix it with a temporary workaround: changing a rule for a loader directly on the webpack file of the serverless-bundle dependency (I know, not ideal but I am trying to get to the root of the problem).
Alright, bundling working with the manual fix but something else broke: the sourcemap.
It now points directly to the TypeDORM package and I really don't know where else to go.
One thing that I notice is that the imports from the ESM modules on the dependencies of TypeDORM are not fully specified but as the package type is module, this should be, shouldn't it?
Granted, I know very little about this side of the business and I am just trying to get a better understanding of the problem and even help if possible.
I am very close to dropping everything with serverless-bundle and just try and setup everything from scratch.
Any help or guidance will be greatly appreciated.
The text was updated successfully, but these errors were encountered:
ryok90
changed the title
Bundling error wiith serverless-bundle
Bundling error with serverless-bundle
Jul 4, 2023
Hey there!
I stumbled across an error that I am not sure if the problem lies here or on serverless-bundle repository.
The thing is that I am trying to setup up a serverless project with minimum configuration since I lack the deep knowledge to set up a packaging workflow properly.
I have this repository already set up to reproduce the issue.
When trying to package a project using
TypeDORM
, the bundling returns the following error.After following this error around and also checking out the examples here on how to bundle with webpack, I've managed to fix it with a temporary workaround: changing a rule for a loader directly on the webpack file of the serverless-bundle dependency (I know, not ideal but I am trying to get to the root of the problem).
Alright, bundling working with the manual fix but something else broke: the sourcemap.
It now points directly to the
TypeDORM
package and I really don't know where else to go.One thing that I notice is that the imports from the ESM modules on the dependencies of
TypeDORM
are not fully specified but as the package type is module, this should be, shouldn't it?Granted, I know very little about this side of the business and I am just trying to get a better understanding of the problem and even help if possible.
I am very close to dropping everything with
serverless-bundle
and just try and setup everything from scratch.Any help or guidance will be greatly appreciated.
The text was updated successfully, but these errors were encountered: