Code to reproduce parcel-bundler/parcel#6642 issue.
Install all dependencies with,
npm install
After, run parcel serve
command with,
npm start
Then open your browser at http://localhost:1234 and observe in console Uncaught TypeError: _sdk is undefined
error.
However, if you run,
npm run build
And then serve distribution with serve
as follows,
npx serve -l tcp://localhost:1235/ ./dist/
everything will work proper, and you will see the "Hello, world!" and info message in console, after opening http://localhost:1235.