Copy link to clipboard
Copied
I'm not sure when it stopped being an available function, but at one point I was able to run Node JS "require" command in the browser context.
So the following...
require("child_process");
...used to work, but now returns an error: "Uncaught ReferenceError: require is not defined"
The manifest.xml does include the two lines (Per David Barranca's HTML Panel Tips #19: CC2015.1 (CEP6.1) Node.js Fixes | Photoshop, etc. )
<Parameter>--enable-nodejs</Parameter>
<Parameter>--mixed-context</Parameter>
Did something change? Any ideas why it would have stopped working?
Solution:
replaced
require();with
cep_node.require();Thanks to to eyali.av for the posting cep_node context for the clue.
Copy link to clipboard
Copied
Solution:
replaced
require();with
cep_node.require();Thanks to to eyali.av for the posting cep_node context for the clue.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more