javax.script.ScriptException: Error: Cannot find module '../package.json' in <Unknown source> at line number 1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by S Lowell, 1 year ago
Error: Cannot find module '../package.json' in <Unknown source> at line number 1
via Stack Overflow by pacoverflow
, 2 years ago
Error: Cannot find module '../package.json' in <Unknown source> at line number 1
via Stack Overflow by Leandro Malek
, 2 years ago
sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "require" is not defined. (&lt;Unknown source&gt;#1) in &lt;Unknown source&gt; at line number 1
via Stack Overflow by Sai
, 2 years ago
sun.org.mozilla.javascript.internal.EvaluatorException: syntax error (&lt;Unknown source&gt;#7) in &lt;Unknown source&gt; at line number 7
via widecodes.com by Unknown author, 2 years ago
sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "window" is not defined. (<Unknown source>#1513) in <Unknown source> at line number 1513
via Stack Overflow by Chathura Buddhika
, 6 months ago
sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "window" is not defined. (<Unknown source>#698) in <Unknown source> at line number 698
sun.org.mozilla.javascript.internal.JavaScriptException: Error: Cannot find module '../package.json' (<Unknown source>#1)
at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:1066)
at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:849)
at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:162)
at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:430)
at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(RhinoScriptEngine.java:116)
at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(RhinoScriptEngine.java:109)
at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:3160)
at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(InterpretedFunction.java:173)
at sun.org.mozilla.javascript.internal.Context.evaluateReader(Context.java:1169)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:214)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.