Skip to content
New issue

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

Error still show compiled code #311

Open
AaroncoolPx opened this issue Mar 5, 2022 · 0 comments
Open

Error still show compiled code #311

AaroncoolPx opened this issue Mar 5, 2022 · 0 comments

Comments

@AaroncoolPx
Copy link

I did the basic setup of original.js, compiled.js and compiled.js.map.

Later tried running the following:
node -r source-map-support/register compiled.js

I got the following:
compiled.js:3
throw new Error('test'); // This is the compiled code
^
Error: test at Object.<anonymous> (compiled.js:3:7) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Function.Module.runMain (internal/modules/cjs/loader.js:742:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

It suppose to show the error happening at original.js

Nodejs version: v16.13.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant