Strange error in fusebox 3.7.1 #1522
Comments
Thanks for reporting this. It's a bug. I will make sure it's fixed in |
Thanks. When will v4 be released by the way? |
It's hard to say, but I was planning to roll out a first version, very soon. I will update the tickets. You can also follow FuseBox on twitter, I will post it there |
Do you know how to fix it, I would love it if I could get a straight fix on the spot, as I'm developing a browser. |
|
I'll assign this in my app-window.ts, where my BrowserWindow is created for electron, this ok? |
You should do it before the scripts are loaded |
Alright |
Hi it didn't work |
FuseBox refers to a global object. Make sure that global object is reachable and contains |
My code is split into seperate files, and I'm not sure if I'm placing it in the correct place. I tried fuse.js, no luck, index.ts, no luck. I can't seem to get it working. |
fuse.js has nothing to do with it. You need to add it in your index.html, before the bundle files |
OK, hopefully this works |
https://hasteb.in/ederivek.xml |
Yeah, can't get it working |
I use this in index.html for cross platform support: <script> var global = global || window; var Buffer = Buffer || []; var process = process || { env: { DEBUG: undefined }, version: [] }; </script> |
@EnderDev try using |
I fixed it ages ago, thank you though! |
Hi, I am getting this error again. I had no idea how I fixed it though. I've tried all of your methods again, but no luck. |
Are you on v4 ? |
No, I am on 3.7.1. |
Please upgrade to v4, v3 is no longer supported. There are docs in the v4 branch |
Hey, I got this error while running fuse.js on the latest v4 Here's my code https://github.com/dot-browser/desktop/blob/master/fuse.js |
Hi. I've installed
|
Do not use |
Alright. I will be removing it. |
Getting this error now. Removed react-hot-loader. And for the other modules they are classes that have been exported e.g.
|
@EnderDev first of all: unresolved/missing modules
Doesn't have Bundle native modules?Secondly, you are bundling invalid javascript syntax
That's an invalid Javascript code. Please refer to the export specs in Please fix the obvious errors first. |
Error: No native build was found for platform=win32 arch=x64 runtime=electron abi=73 uv=1 libc=glibc
at Function.load.path (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:118703:9)
at load (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:118683:30)
at Object.<anonymous> (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:37119:43)
at $import (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:428:11)
at locals.require (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:411:18)
at Object.<anonymous> (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:37015:17)
at $import (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:428:11)
at locals.require (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:411:18)
at Object.<anonymous> (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:3557:21)
at $import (C:\Users\ender\Desktop\Dot Browser\dot-desktop\dist\main\6b4091b_app.js:428:11) Hi, I've followed your instructions, and now I seem to be getting this error, no issues bundling now. I see in #1570 there is a similar issue, however the resolution you provided was to upgrade to v4, which I have done. |
@EnderDev this error isn't related to FuseBox, so I can't help you there |
What's wrong with v4 and who told you that ? It's much more reliable than v3 and does a lot more |
Well so far it hasn't been working. Not unless I have set up my v4 config wrong, and v3 is the only version that managed to get dev tools open and my Electron app open. |
Please join slack for further discussion :) |
The link above to the v4 docs is a 404. @nchanged you keep asking people to upgrade to v4, but I tried, nothing worked and there are no docs for it that I can find. I'm having this same issue with 3.7.1, you should patch v3 to fix this instead of forcing people to upgrade to a version with breaking changes. |
Hi, I know this may be similar to #225 but it is almost 2 years old now, and I don't think what you discussed could help me, the test file is not on the repo anymore either.
Anyway, I am using Electron, and when I launch my app with the the command
cross-env NODE_ENV='dev' node fuse.js
, it builds everything and it creates the development server on port 4444, it then says HMR is enabled. However when it gets to launching Electron itself, there is a error on the dev tools sayingUncaught TypeError: Cannot read property 'env' of undefined at app.js:3
, in app.js on line 3 it underlines this auto generated line. https://i.imgur.com/Bj6dup0.pngI've been told I can't change this and I should report this here.
Thanks, Ender
The text was updated successfully, but these errors were encountered: