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
When I run your CLI code I have some errors when I run node bundle.js:
import { person } from "./person";
^^^^^^
SyntaxError: Unexpected token import
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:528:28)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
I changed the webpack.config.js file to work fine the webpack cli command:
When I run your CLI code I have some errors when I run
node bundle.js
:I changed the
webpack.config.js
file to work fine the webpack cli command:If you didn't put tsx$ it doesn't work.
But the resulting bundle have an Import that is not supported by the browser and Node.JS.
OS. Windows 8.1
CLI. ConEmu Git CLI.
IDE. VSCode.
The text was updated successfully, but these errors were encountered: