-
Notifications
You must be signed in to change notification settings - Fork 330
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
Migrating to v0.13 causes issue #205
Comments
The Is there any extra configuration in your Does anything look out of place in the generated Webpack config if you set a Does your project structure much different from what nwb's skeleton app creates? It looks like you're running A relevant change in 0.13 could be that we now specify the path to babel-runtime when creating Babel config, so it would be useful to see what that gets set to using debug output. |
One thing I noticed just now which is not good is that modules are required with absolute path with var _extends2 = require('/Users/{my-user-name}/projects/{my-project}/node_modules/babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('/Users/{my-user-name}/projects/{my-project}/node_modules/babel-runtime/helpers/classCallCheck');
And more... Notice that I removed global |
Yea, this is a bug I believe in 0.13.x. var _extends2 = require('/usr/local/lib/node_modules/nwb/node_modules/babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('/usr/local/lib/node_modules/nwb/node_modules/babel-runtime/helpers/classCallCheck');
And more... EDIT Yea, now I'm sure... reverted back to 0.12.2 and it's producing the correct code. var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
And more... and also Jenkins build was successful too. |
Which type of project is this? Can you provide your
If you use |
Does v0.13.6 fix this? |
Yoohoo, yes, this new release v0.13.6 seems to fix the issue. but fyi I'm pasting my nwb config, this project is a react component which I inject in other projects as dependency... module.exports = {
type: 'react-component',
babel: {
stage: 0,
runtime: true
},
npm: {
esModules: true,
jsNext: true,
global: '',
externals: {
'react': 'React'
},
umd: false
},
webpack: {
aliases: {
'webworkify': 'webworkify-nwb'
},
extra: {
devtool: 'source-map'
},
html: {
favicon: 'vendors/favicon.ico'
}
}
} |
Closing as fixed. |
First I uninstalled global nwb, then installed it locally.
when doing so
npm ls nwb
threw peer dependency errorbabel-core
was missing, so it wouldn't start on{path to nwb module}\nwb.js serve
.Then I npm installed it as peer dependency and it starts to work.
However when Jenkins build the project, I receive the following error:
Error: Cannot find module '{path to project}/node_modules/babel-runtime/helpers/extends' from {path to project}/lib/wc-workspace
Is there anything I do wrong while migrating?
Thanks.
The text was updated successfully, but these errors were encountered: