Hey Lorless, stackblitz does some magic that adds the index.js. If you're trying it out locally you should add a <script type="module" src="./index.js"> to your index.html.
<script type="module" src="./index.js">
index.html
I'd additionally install es-dev-server as explained here. In case local development environment is not already set.
Thanks! I wondered whether something like that was happening. The tutorial was good.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Lorless, stackblitz does some magic that adds the index.js. If you're trying it out locally you should add a
<script type="module" src="./index.js">
to yourindex.html
.I'd additionally install es-dev-server as explained here. In case local development environment is not already set.
Thanks! I wondered whether something like that was happening. The tutorial was good.