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
Cannot run build #1036
Comments
Interesting. How did you install you dependencies? I would recommend using yarn and the latest version of node: npm i -g yarn
rm -rf node_modules
yarn Also did you make any changes to the boilerplate or did you start off with a fresh clone? |
I have used yarn and I am using the latest version of node. I made some changes, you can check the repo at:https://github.com/SaraVieira/Dagger It may have been a newbie mistake |
@SaraVieira Try doing a fresh clone of the boilerplate. If there its no issue with running |
@amilajack I have almost the same problem than @SaraVieira, |
@SaraVieira try some of the solution here: webpack/webpack#4603 (comment) |
@crakjie Are you getting an error that includes |
I think the # problem in the first message is not related to |
@crakjie what does your stacktrace look like? |
@SaraVieira you can resolve this by adding |
@amilajack In the log file I have the same stack trace than in #967, which just mean "something want wrong" I think. |
After looking at this again, this most likely has to do with
export default {
externals: [
'fsevents',
...Object.keys(externals || {})
],
// ...
} |
Closing because I think this was addressed. Please let me know if you're still experiencing issues with this and I will gladly reopen the issue |
I was getting the cryptic
This came from the module I realize this issue is closed, but I wanted to leave this here in case anyone else came across it, especially since this git issue is the top Google result for "ERROR in unknown: Invalid number". |
@matthewcc I tried with octal-number-loader, but still getting the same error. Any idea why? Below is my webpack.config.js file var webpack = require('webpack');
const config = {
entry: ['babel-polyfill', './src/main/index.js', ...],
plugins: [
new webpack.DefinePlugin({ "global.GENTLY": false })
],
node: {
__dirname: true,
},
resolve: {
alias: {
'inherits': 'inherits/inherits_browser.js',
'superagent': 'superagent/lib/client',
'emitter': 'component-emitter',
}
},
module: {
rules: [{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}, {
test: /tar[\\\/].*\.js$/,
loader: 'babel-loader!octal-number-loader'
}]
}
};
module.exports = config; |
same issue +1 |
@iamblue please share your stack trace |
ERROR in unknown: Invalid number; google to this issue, same module mkpath |
@shhdharmen sorry for the long delay I missed this. Hopefully, you found the answer. I don't really know the ins and outs of webpack, but my own module setting looks like this: You may not want/need to run it through babel. I also can only barely comprehend regex, but its possible your test is also filtering out the files you wanted to convert. And actually the above setting eventually created a problem, in that it converts not just octal numbers, but anything it encounters inside a string that looks like an octal. So I am saving HTML gamepad ids for an arcade application for remembering which is player 1, which is player 2. But the stored id string contained what looked like octals (028e for example), and these were being converted, creating a mismatch. Ultimately, I chose to apply the octal loader just to the offending package:
|
same here... my stack WARNING in ./node_modules/electron-debug/index.js ERROR in ./node_modules/npm/bin/npm-cli.js npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\Alberto\AppData\Roaming\npm-cache_logs\2018-04-26T16_10_50_845Z-debug.log |
Hello,
Great boilerplate , I do get an error when trying to run the build:
Here is the stack trace:
Has this happened to anyone ?
In dev this run awesome
The text was updated successfully, but these errors were encountered: