aurelia / bootstrapper

Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.
MIT License
75 stars 34 forks source link

isNodeLike returns incorrectly in browser #71

Closed cliener closed 7 months ago

cliener commented 5 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: Throws error as below on load Unhandled rejection TypeError: Unable to get property 'node-webkit' of undefined or null reference This is triggered by the boolean isNodeLike being incorrectly set to true even though the code is being executed in the browser.

Inspecting the code in browser results in a bizarre situation where the console returns a different result from the dev tools as per this screenshot. Aurelia Bootstrapper 2019-05-03 142105

This is the same section of code that caused issues in #53

Expected/desired behavior:

3cp commented 5 years ago

@cliener can you push up a demo repo for reproducing this error? It's very strange as there is no other user reporting this.

gp-slick-coder commented 3 years ago

Had the same issue. Did a Chrome browser update to Version 89.0.4389.90 (Official Build) (64-bit) and the error was gone.

berkerdemirer commented 9 months ago

We are having the same issue in 2024

3cp commented 9 months ago

@berkerdemirer could you publish a demo repo?

berkerdemirer commented 7 months ago

It is quite hard to publish a demo repo because we are not sure what's the cause. We can't reproduce it reliably. Our repo where we are having the issue is quite old and in maintenance mode. I can just say that it just broke out of nowhere without any new commit

3cp commented 7 months ago

@berkerdemirer try run npm run analyze in the project. It should bring up webpack analyze web ui. Try search "process" to see if it returns any module. Please share a screenshot if it found something.

Screenshot 2024-04-18 at 7 48 53 AM