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
The downloaded JSX boilerplate throws an error while building.
Download boilerplate-jsx
Unzip, then go to boilerpate-jsx/1. Hello World
Execute npm i, then npm run build. The result is:
➜ 1. Hello World npm run build
> [email protected] build /Users/fanqi/Projects/WebstormProjects/metaljs-boilerplate-jsx/1. Hello World
> gulp build
[15:12:19] Using gulpfile ~/Projects/WebstormProjects/metaljs-boilerplate-jsx/1. Hello World/gulpfile.js
[15:12:19] Starting 'build'...
[15:12:19] Starting 'clean'...
[15:12:19] Finished 'clean' after 7.57 ms
[15:12:19] Starting 'css'...
[15:12:19] Starting 'soy'...
[15:12:19] Finished 'soy' after 25 ms
[15:12:19] Starting 'build:js'...
[15:12:19] Starting 'build:globals:js'...
Error in plugin 'metal'
Message:
Cannot call a class as a function (While processing preset: "/Users/fanqi/Projects/WebstormProjects/metaljs-boilerplate-jsx/1. Hello World/node_modules/metal/lib/metal.js")
[15:12:19] Finished 'build:globals:js' after 362 ms
[15:12:19] Finished 'build:js' after 362 ms
[15:12:19] Finished 'css' after 500 ms
[15:12:19] Starting 'uglify'...
[15:12:19] Finished 'uglify' after 3.14 ms
[15:12:19] Finished 'build' after 514 ms
Hey @fanqi, thanks for catching that. Looks like our jsx boilerplate was pretty out of date. I updated it with a newer version of metal-jsx. I sent a pull-request to fix the download link here bryceosterhaus/metaljs.com#40
The downloaded JSX boilerplate throws an error while building.
npm i
, thennpm run build
. The result is:The text was updated successfully, but these errors were encountered: