[x3d-public] difference between running node and node.exe

John Carlson yottzumm at gmail.com
Tue Jun 9 23:36:11 PDT 2020


Not sure what to do except fix X3dToNodeJS.xslt stylesheet. Note the
differences between running node and node.exe.

$ node examples/Json.js
C:\x3d-code\www.web3d.org\x3d\stylesheets\java\node\examples\Json.js:411
        .addShaders((new autoclass.ProtoInstance("TestShader3",
"ShaderProto")).setDEF("TestShader3").setName("ShaderProto"))
        ^

TypeError: Cannot read property 'addShaders' of null
    at Json.initialize (C:\x3d-code\www.web3d.org
\x3d\stylesheets\java\node\examples\Json.js:411:9)
    at new Json (C:\x3d-code\www.web3d.org
\x3d\stylesheets\java\node\examples\Json.js:135:10)
    at Object.<anonymous> (C:\x3d-code\www.web3d.org
\x3d\stylesheets\java\node\examples\Json.js:482:1)
?[90m    at Module._compile (internal/modules/cjs/loader.js:1176:30)?[39m
?[90m    at Object.Module._extensions..js
(internal/modules/cjs/loader.js:1196:10)?[39m
?[90m    at Module.load (internal/modules/cjs/loader.js:1040:32)?[39m
?[90m    at Function.Module._load
(internal/modules/cjs/loader.js:929:14)?[39m
?[90m    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:71:12)?[39m
?[90m    at internal/main/run_main_module.js:17:47?[39m

$ node.exe examples/Json.js
WARNING_MESSAGE: ProtoInstance name='ShaderProto' DEF='TestShader3' USE=''
is missing containerField relationship to parent node, assuming
containerField='shaders' from initial node in corresponding ProtoDeclare.
Need to fix ProtoInstance definition in model source.
Json execution self-validation test results:
WARNING_PROTOINSTANCE_NOT_FOUND, ProtoDeclare NewWorldInfo has no
corresponding ProtoInstance attached to the scene graph.
WARNING_MESSAGE: ProtoInstance name='ShaderProto' DEF='TestShader3' USE=''
is missing containerField relationship to parent node, assuming
containerField='shaders' from initial node in corresponding ProtoDeclare.
Need to fix ProtoInstance definition in model source.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200610/dfcef61e/attachment.html>


More information about the x3d-public mailing list