You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a Node env, loading Steal & importing a script also imports the main script ("main" property in package.json if defined, otherwise attempts to load ./index.js)
$ node start.js
Potentially unhandled rejection [4] Error: Error loading "index" at file:/Users/stuartcox/code/tmp/index.js
ENOENT: no such file or directory, open '<cwd>/index.js'
at Error (native)
On #800@matthewp said this should be considered a bug: presumably steal.import('src/app') should just load ./src/app.js (and its dependencies).
The text was updated successfully, but these errors were encountered:
This fixes it so that System.main isn't automatically loaded in Node. Instead System.main is only loaded if provided a main via configuration prior to the first steal.import() call. Closes#802
In a Node env, loading Steal & importing a script also imports the main script (
"main"
property in package.json if defined, otherwise attempts to load./index.js
)On #800 @matthewp said this should be considered a bug: presumably
steal.import('src/app')
should just load./src/app.js
(and its dependencies).The text was updated successfully, but these errors were encountered: