toastdotdev / toast

The best place to stack your JAM. Toast is a Jamstack framework
153 stars 13 forks source link

Add missing quotes to example code #66

Closed m-allanson closed 3 years ago

m-allanson commented 3 years ago

Using this example will result in an error:

node_modules/.bin/toast incremental .
▪▪▪ [0s] 1 pages created
⠁
error: Unexpected token `preact`. Expected a string literal
 --> </>:1:19
  |
1 | import { h } from preact;
  |                   ^^^^^^

The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: failed to parse module
Location: toast/src/swc_ops.rs:52

Backtrace omitted.
Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Adding the quotes fixes it.

ChristopherBiscardi commented 3 years ago

Thank you!!

m-allanson commented 3 years ago

No problem!