NodeScriptExecutor.js.map

Post Reply
Sunnyland
Member
Posts: 56
Joined: Mon Aug 19, 2013 1:34 am

NodeScriptExecutor.js.map

Post by Sunnyland »

Is anyone else getting this error?

ENOENT: no such file or directory, open 'c:\Program Files\Enfocus\Enfocus Switch\ScriptExecutor\NodeScriptExecutor.js.map'

From what I can tell NodeScriptExecutor.js is in the folder but I do not have a NodeScriptExecutor.js.map file.
Is this something I need to add?
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: NodeScriptExecutor.js.map

Post by Padawan »

Is there anything related to sourceMaps in your package.json file? If so, can you try removing/disabling it?
Sunnyland
Member
Posts: 56
Joined: Mon Aug 19, 2013 1:34 am

Re: NodeScriptExecutor.js.map

Post by Sunnyland »

No I cannot see anything that refeerences Enfocus Swith in the package.json file at all the complete error is as follows

Could not read source map for file:///C:/Program%20Files/Enfocus/Enfocus%20Switch/ScriptExecutor/NodeScriptExecutor.js: ENOENT: no such file or directory, open 'c:\Program Files\Enfocus\Enfocus Switch\ScriptExecutor\NodeScriptExecutor.js.map'

The file is in the directory and it seems to have read/write access.
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: NodeScriptExecutor.js.map

Post by Padawan »

Can you share your package.json file?
Sunnyland
Member
Posts: 56
Joined: Mon Aug 19, 2013 1:34 am

Re: NodeScriptExecutor.js.map

Post by Sunnyland »

Sure thing,
Please see the contents of my package.json file

{
"name": "nodejs-job-arrived2",
"version": "0.0.0",
"description": "NodejsJobArrived2",
"main": "main.js",
"author": {
"name": ""
},
"dependencies": {
"easy-soap-request": "^3.3.3",
"express": "^4.17.1",
"fetch": "^1.1.0",
"fs-extra": "^9.0.1",
"node-fetch": "^2.6.0",
"soap": "^0.33.0",
"xml-js": "^1.6.11",
"xml-query": "^1.5.0",
"xml-reader": "^2.4.3",
"xml2json": "^0.12.0",
"xmldom": "^0.3.0",
"xpath": "^0.0.27"
}
}
Sunnyland
Member
Posts: 56
Joined: Mon Aug 19, 2013 1:34 am

Re: NodeScriptExecutor.js.map

Post by Sunnyland »

Sure thing,
Please see the contents of my package.json file

{
"name": "nodejs-job-arrived2",
"version": "0.0.0",
"description": "NodejsJobArrived2",
"main": "main.js",
"author": {
"name": ""
},
"dependencies": {
"easy-soap-request": "^3.3.3",
"express": "^4.17.1",
"fetch": "^1.1.0",
"fs-extra": "^9.0.1",
"node-fetch": "^2.6.0",
"soap": "^0.33.0",
"xml-js": "^1.6.11",
"xml-query": "^1.5.0",
"xml-reader": "^2.4.3",
"xml2json": "^0.12.0",
"xmldom": "^0.3.0",
"xpath": "^0.0.27"
}
}
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: NodeScriptExecutor.js.map

Post by Padawan »

I'm sorry, I meant the launch.json file (it is in your .vscode) folder. I don't know the file names by hard yet in the new scripting engine.
Sunnyland
Member
Posts: 56
Joined: Mon Aug 19, 2013 1:34 am

Re: NodeScriptExecutor.js.map

Post by Sunnyland »

All good. The whole lot is a learning curve for me. This is the launch.json file.

{ // Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"skipFiles": [
"<node_internals>/**"
],
"port": 9229
}
]
}

Pretty much just copied the recommended settings.
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: NodeScriptExecutor.js.map

Post by Padawan »

That also looks normal to me. I think it is best to first check the basics.

- Have the script in a Switch flow
- Set debug to yes in the script element
- make sure the entry point you want to test is in "debug entry points"
- activate the flow
- If you want to test the jobarrived entry point, make sure there is a job before the script element
- Only now click the button in VS code to start debugging.

Does this fix the issue?

If not, then create a new sscript with a new main.js file with only the bare minimum of functionality. Then
- Test if that works
- If it works, add one small piece of functionality you have in your full script
- Test if that works
- Continue until it stops working. The last thing you added will have caused the problem.
dkelly
TOP CONTRIBUTOR
Posts: 658
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Re: NodeScriptExecutor.js.map

Post by dkelly »

Sunnyland wrote: Fri Aug 21, 2020 8:03 am ENOENT: no such file or directory, open 'c:\Program Files\Enfocus\Enfocus Switch\ScriptExecutor\NodeScriptExecutor.js.map'
The source map file (.map) contains debugger information. It's optional and the warning can be ignored.

I doubt the Enfocus wants to disclose the source code to that script.
Sunnyland
Member
Posts: 56
Joined: Mon Aug 19, 2013 1:34 am

Re: NodeScriptExecutor.js.map

Post by Sunnyland »

Thanks for that. I have been ignoring the message, it’s good to know that it isn’t affecting anything
Post Reply