Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building "1. Hello World" example #114

Closed
ipeychev opened this issue May 24, 2016 · 7 comments
Closed

Error building "1. Hello World" example #114

ipeychev opened this issue May 24, 2016 · 7 comments

Comments

@ipeychev
Copy link
Contributor

Hello,

Executing npm run build command in "1. Hello World" example does not finish successfully.

Steps to reproduce:

  1. Download boilerplate-jsx
  2. Unzip, then go to boilerpate-jsx/1. Hello World
  3. Execute npm i, then npm run build. The result is:
➜  1. Hello World pwd
/Users/iliyan/Downloads/boilerpate-jsx/1. Hello World
➜  1. Hello World npm i
npm WARN [email protected] requires a peer of karma@>=0.10.9 but none was installed.
npm WARN [email protected] requires a peer of karma@>=0.9 but none was installed.
npm WARN [email protected] requires a peer of karma@>=0.10 but none was installed.
npm WARN [email protected] license should be a valid SPDX license expression
➜  1. Hello World npm run build

> [email protected] build /Users/iliyan/Downloads/boilerpate-jsx/1. Hello World
> gulp build

[22:27:37] Using gulpfile ~/Downloads/boilerpate-jsx/1. Hello World/gulpfile.js
[22:27:37] Starting 'build'...
[22:27:37] Starting 'clean'...
[22:27:37] Finished 'clean' after 12 ms
[22:27:37] Starting 'css'...
[22:27:37] Starting 'soy'...
[22:27:37] Finished 'soy' after 24 ms
[22:27:37] Starting 'build:js'...
[22:27:37] Starting 'build:globals:js'...
Error in plugin 'metal'
Message:
    document is not defined
[22:27:38] Finished 'build:globals:js' after 312 ms
[22:27:38] Finished 'build:js' after 312 ms
[22:27:38] Finished 'css' after 361 ms
[22:27:38] Starting 'uglify'...
[22:27:38] Finished 'uglify' after 3.75 ms
[22:27:38] Finished 'build' after 380 ms
➜  1. Hello World

Expected result:
The required artifacts for running the demo page to be created successfully.

Actual result:
There were no any artifacts created.

Used OS:
MacBook Pro, v10.10.5

Node version:
v5.6.0

NPM version:
3.6.0

Thanks,

@eduardolundgren
Copy link
Contributor

I've got the same issue here.

@eduardolundgren
Copy link
Contributor

It only happens on boilerplate-jsx the soy one is fine. Will investigate what's going on.

@mairatma
Copy link
Contributor

Weird, I'm taking a look

@mairatma
Copy link
Contributor

Thanks for reporting this @ipeychev :D

I've fixed this and made sure that all the examples are working now.

@ipeychev
Copy link
Contributor Author

Great 👍

@ipeychev
Copy link
Contributor Author

One more note - in the site it is written:
"If you want you can also turn header and bodyinto state properties. That way when you type something like modal.header = 'New Header', the contents will also be updated automatically."

The user will try to do something as on the following screencast and he/she will wonder what is he/she doing wrong, because the header is not being updated. It would be good to show such an example.
bug

@mairatma
Copy link
Contributor

You're right, it's not clear from the text that there's an extra step converting the this.config.header and this.config.body calls to this.header and this.body. I've created a separate issue to track this: bryceosterhaus/metaljs.com#23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants