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
I'm trying to get started with Preact. I'm on the "Getting Started" section of the Web page. I'm trying the code sample under the heading No build tools route (below).
import{h,Component,render}from'https://unpkg.com/preact?module';// Create your appconstapp=h('div',null,'Hello World!');// Inject your application into the an element with the id `app`.// Make sure that such an element exists in the dom ;)render(app,document.getElementById('app'));
In Chrome browser; Version 80.0.3987.100 (Official Build) (64-bit) Windows 10
I get the following error:
Uncaught TypeError: Cannot read property '__k' of null
at E (preact.module.js?module:1)
at index.js:8
When I click to run the code sample in REPL, I get another error:
Error: No module found for preact?module
Stack trace:
_require :1:2993
eval :6:21
Runner.execute :1:3819
Runner.execute :1:3906
unknown :0:0
I was not expecting errors.
I was expecting to use a library for creating Web components.
The no build tools route sounds great, and I'm excited to get started with Preact.
The text was updated successfully, but these errors were encountered:
I'm trying to get started with Preact. I'm on the "Getting Started" section of the Web page. I'm trying the code sample under the heading No build tools route (below).
In Chrome browser; Version 80.0.3987.100 (Official Build) (64-bit) Windows 10
I get the following error:
When I click to run the code sample in REPL, I get another error:
I was not expecting errors.
I was expecting to use a library for creating Web components.
The no build tools route sounds great, and I'm excited to get started with Preact.
The text was updated successfully, but these errors were encountered: