TypeError: "Cannot read property 'PYTHON' of undefined" when using --build
See original GitHub issueThis is a
- Bug Report
- Feature Request
- Other
When I try packaging with nexe using the --build
flag, I get TypeError: Cannot read property 'PYTHON' of undefined
. I see this on Linux ARM and macOS.
Steps to duplicate
$ mkdir hello
$ cd hello
$ npm init -y
$ echo console.log\(\'hello\'\) > index.js
$ npx nexe index.js --build
TypeError: Cannot read property ‘PYTHON’ of undefined
I can work around this by manually building the downloaded source
$ cd ~/.nexe/8.10.0/
$ ./configure && make
$ cd ~/hello
$ npx nexe index.js --build
Do I need to set some additional configuration or is this a bug?
Please also provide:
- Platform(OS/Version): macOS 10.13.4 and Linux rpi ARM
- Host Node Version: 8.10.0
- Target Node Version: 8.10.0
- Nexe version: nexe@2.0.0-rc.28
- Python Version: 2.7.10 (macOS) 2.7.13 (Linux ARM)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >[Solved] Cannot read Properties of Undefined in JavaScript
The 'Cannot read properties of undefined' error occurs when you try to access a property or a method on a variable that stores...
Read more >How To Fix Cannot read Property '0' of Undefined in JS
Ensure you are using the correct variable · Perform a simple check on your variable before using it to make sure it is...
Read more >What is "TypeError: Cannot read property 'state' of undefined"?
The error message says that you don't have the state property on an undefined object. To decode this, we have to understand the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
closed via 089aa02a8208907db0a4145715896a72383197e1
@beenotung if manually compile the source in ~/.nexe/8.10.0/, nexe will find and used the compiled code next time you package an app