nestjs-pino icon indicating copy to clipboard operation
nestjs-pino copied to clipboard

[BUG] Source maps missed in the package

Open diarmind opened this issue 1 year ago • 0 comments

What is the current behavior?

Files into nextjs-pino package point to source maps with source mapping url comments. For example //# sourceMappingURL=LoggerErrorInterceptor.js.map in node_modules/nestjs-pino/LoggerErrorInterceptor.js. There is no .map.js files exist in the package. Compiling server with webpack with an option "devtool": "source-map" and source-map-loader results in warnings

Failed to parse source map from '<your-app-path>/node_modules/nestjs-pino/InjectPinoLogger.js.map' file: Error: ENOENT: no such file or directory, open '<your-app-path>/node_modules/nestjs-pino/InjectPinoLogger.js.map'

What is the expected behavior?

.js.map files are included in the package. source-map-loader is able to locate source maps.

Please provide minimal example repo, not code snippet. Without example repo this issue will be closed.

Will make an example in days.

Please mention other relevant information such as Node.js version and Operating System.

Not specific to the environment.

diarmind avatar Feb 20 '24 10:02 diarmind