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

npm install on framework to fix builds #125

Merged
merged 1 commit into from
Apr 29, 2016

Conversation

chillu
Copy link
Member

@chillu chillu commented Apr 28, 2016

  • babel needs to transform ES6 test files
  • it tries to find a babel config (in .babelrc or package.json) for each file its loading
  • at some point during test exec, it its the first ES6 file in framework (../framework/admin/client/src/lib/SilverStripeComponent.js)
  • goes up the directory, finds framework/package.json
  • tries to load ES6 module dependencies in that file relative to that
  • fails with Couldn't find preset "react" relative to directory "/Users/ingo/builds/ss/framework"
  • because we haven’t run npm install on framework (since its a asset-admin build)

This is a short-term fix, we need to look into publishing
node_modules instead of hacking around with NODE_PATH
across SS modules.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @assertchris and @sminnee to be potential reviewers

- babel needs to transform ES6 test files
- it tries to find a babel config (in `.babelrc` or `package.json`) for each file its loading
- at some point during test exec, it its the first ES6 file in framework (`../framework/admin/client/src/lib/SilverStripeComponent.js`)
- goes up the directory, finds `framework/package.json`
- tries to load ES6 module dependencies in that file relative to that
- fails with `Couldn't find preset "react" relative to directory "/Users/ingo/builds/ss/framework"`
- because we haven’t run `npm install` on `framework` (since its a asset-admin build)

This is a short-term fix, we need to look into publishing
node_modules instead of hacking around with NODE_PATH
across SS modules.
@chillu chillu force-pushed the pulls/fix-build-install-on-framework branch from f419582 to 172ed38 Compare April 29, 2016 00:04
@chillu chillu merged commit 14424fd into master Apr 29, 2016
@chillu chillu deleted the pulls/fix-build-install-on-framework branch April 29, 2016 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants