-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Can't seem to build on windows #62
Comments
Hi, Could you provide more logs ? |
here are the full log
|
dependencies
|
Thanks i ll take a look and report back during this weekend (kindof swamped with work this week) |
Cool :) |
I'm encountering the same issue, any updates? |
I got the same problem in my project. I think there is a mistake in my project configuration ... but I have no idea which one. ===== |
I am having the same issue. Has anyone managed to resolve this yet? |
I had the same issue with a project I started from scratch which does not use webpack. nodegui-starter works fine for me too. Maybe I shouldn't be so stubborn and just use the starter as a base, but I like to understand all the components involved this way, sue me :-) After a lot of comparing here's my conclusion. It's not really a proper solution as I suspect the file is platform-dependant after the npm install, but I thought I'd share it in case it helps anyone else: Copy the file node_modules@nodegui\nodegui\build\Release\nodegui_core.node to whatever folder is passed to the packer. By default this is "dist", but since I had no compile step mine was "src". It's the path after "npx nodegui-packer --pack". I noticed this file is copied to dist by webpack, and there is a native-addon-loader in the config, but I'm not proficient enough to figure out how it knows about that exact file. |
Hey @MvRens The native addon loader just copies all |
I have same issue with Only changing the emitted file from |
I solved my issue by changing a little bit the package.json {
"name": "@asd/node-gui",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"scripts": {
"build": "webpack -p",
"start": "webpack -p && qode ./dist/index.js",
"debug": "webpack -p && qode --inspect ./dist/index.js",
"pack": "npx nodegui-packer --pack ./dist"
},
"author": "",
"license": "ISC",
"dependencies": {
"@nodegui/nodegui": "^0.28.0",
"@nodegui/vue-nodegui": "^0.0.5",
"@vue/compiler-sfc": "^3.0.4",
"css-loader": "^5.0.1",
"express": "^4.17.1",
"file-loader": "^6.2.0",
"hertzy": "^0.1.1",
"mini-css-extract-plugin": "^1.3.3",
"node-loader": "^0.6.0",
"open": "^7.3.0",
"url-loader": "^4.1.1",
"vue": "^3.0.4",
"vue-loader": "16.0.0-beta.7",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12"
},
"devDependencies": {
"@nodegui/packer": "^1.4.1"
}
} webpack.config.js const path = require('path');
const { VueLoaderPlugin } = require('vue-loader');
const { compilerOptions } = require('@nodegui/vue-nodegui/dist/vueLoader');
// const CopyPlugin = require("copy-webpack-plugin");
module.exports = (env = {}) => ({
mode: env.prod ? 'production' : 'development',
devtool: 'inline-source-map',
entry: './src',
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
//publicPath: '/dist/',
filename: "index.js"
},
// node: {
// __dirname: false,
// __filename: false
// },
resolve: {
extensions: ['.ts', '.js', '.vue', '.json'],
alias: {
vue: path.resolve(__dirname, './node_modules/@nodegui/vue-nodegui/dist'),
},
},
module: {
rules: [
{
test: /\.vue$/,
use: {
loader: 'vue-loader',
options: {
compilerOptions,
},
},
},
{
test: /\.node$/,
use: [{ loader: 'node-loader' }, { loader: 'file-loader' }],
},
{
test: /\.(png|jpe?g|gif|svg|bmp|ps1)$/i,
use: [{
loader: 'file-loader',
options: {
publicPath: "dist"
}
}],
},
],
},
plugins: [
new VueLoaderPlugin(),
/*new CopyPlugin({
patterns: [
{ from: "web/dist", to: "web" },
],
}),*/
],
}); |
This is still a problem as of 2021-10-21. I get all kinds of errors when running
Such as...
That goes on for awhile.... |
Is this still being looked into? |
It's looking for the .node file located at I'm using esbuild though and so I copy the file after the esbuild is complete and things work properly. |
我和你一样的错误,真是见鬼了,官方示例代码都build不动? |
It has been four years, have you solved it, and have the authorities solved it? Why is it still difficult to build |
Last build was 3 years ago. I'm gonna guess this project is abandoned. |
But how did the developer run away in the middle of the answer? Didn't he say that he was busy this week |
packer version 1.4.0
Tried to build it on macOS - work great
Move repo to windows, pack using windows instruction
npx nodegui-packer --pack ./dist
Did I miss anything?
The text was updated successfully, but these errors were encountered: