[GH-ISSUE #307] Master doesn't compile on Win10 #114

Closed
opened 2026-03-03 00:18:30 +03:00 by kerem · 5 comments
Owner

Originally created by @Tetsuya95 on GitHub (Jan 19, 2020).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/307

Current behavior

Boostnote doesn't compile properly.

`>npm run build

boostnote@0.1.4 build C:\Users\csche\MyGithub\BoostNote.next
rimraf compiled && env-cmd cross-env TS_NODE_PROJECT="tsconfig-webpack.json" webpack --mode production

Error: Unable to locate env file at default locations (./.env,./.env.js,./.env.json)
at getEnvFile (C:\Users\csche\MyGithub\BoostNote.next\node_modules\env-cmd\dist\get-env-vars.js:34:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! boostnote@0.1.4 build: rimraf compiled && env-cmd cross-env TS_NODE_PROJECT="tsconfig-webpack.json" webpack --mode production
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the boostnote@0.1.4 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\csche\AppData\Roaming\npm-cache_logs\2020-01-19T19_16_50_545Z-debug.log
`

Expected behavior

App should compile and run

Steps to reproduce

  1. Clone the repository
  2. npm i
  3. npm run build
    (4. npm run pack)

Environment

  • Version :
  • OS Version and name : Windows 10
Originally created by @Tetsuya95 on GitHub (Jan 19, 2020). Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/307 # Current behavior Boostnote doesn't compile properly. `>npm run build > boostnote@0.1.4 build C:\Users\csche\MyGithub\BoostNote.next > rimraf compiled && env-cmd cross-env TS_NODE_PROJECT="tsconfig-webpack.json" webpack --mode production Error: Unable to locate env file at default locations (./.env,./.env.js,./.env.json) at getEnvFile (C:\Users\csche\MyGithub\BoostNote.next\node_modules\env-cmd\dist\get-env-vars.js:34:11) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! boostnote@0.1.4 build: `rimraf compiled && env-cmd cross-env TS_NODE_PROJECT="tsconfig-webpack.json" webpack --mode production` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the boostnote@0.1.4 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\csche\AppData\Roaming\npm-cache\_logs\2020-01-19T19_16_50_545Z-debug.log ` # Expected behavior App should compile and run # Steps to reproduce 1. Clone the repository 2. npm i 3. npm run build (4. npm run pack) # Environment - Version : - OS Version and name : Windows 10
kerem 2026-03-03 00:18:30 +03:00
Author
Owner

@Tetsuya95 commented on GitHub (Jan 19, 2020):

doesn't even work on Ubuntu. I'm missing an .env file, but I currently don't know about that. This shouldn't happen tho?

<!-- gh-comment-id:576040786 --> @Tetsuya95 commented on GitHub (Jan 19, 2020): doesn't even work on Ubuntu. I'm missing an .env file, but I currently don't know about that. This shouldn't happen tho?
Author
Owner

@ymtdzzz commented on GitHub (Jan 21, 2020):

try to create empty .env file to project root.
I had a similar problem on MacOS, but I was able to build by this way.
(I'm not sure if this is the right solution...)

<!-- gh-comment-id:576476460 --> @ymtdzzz commented on GitHub (Jan 21, 2020): try to create empty .env file to project root. I had a similar problem on MacOS, but I was able to build by this way. (I'm not sure if this is the right solution...)
Author
Owner

@Tetsuya95 commented on GitHub (Jan 21, 2020):

@zeroclock Thanks! Seems to work.

@Rokt33r Please update the build instructions so new ppl can build the app without errors.

<!-- gh-comment-id:576671870 --> @Tetsuya95 commented on GitHub (Jan 21, 2020): @zeroclock Thanks! Seems to work. @Rokt33r Please update the build instructions so new ppl can build the app without errors.
Author
Owner

@Rokt33r commented on GitHub (Jan 27, 2020):

I'll thanks for reminding.

<!-- gh-comment-id:578586370 --> @Rokt33r commented on GitHub (Jan 27, 2020): I'll thanks for reminding.
Author
Owner

@AWolf81 commented on GitHub (Mar 13, 2020):

@Rokt33r I've had the same issue and an empty .env file helped.

I think it would be good to mention it in the docs or add an .env.example file to the project root with a comment inside.

Then it's clear that an .env file is required. In the example env. you could also add dummy env. variables with comments what & when variables are required.

<!-- gh-comment-id:598969936 --> @AWolf81 commented on GitHub (Mar 13, 2020): @Rokt33r I've had the same issue and an empty `.env` file helped. I think it would be good to mention it in the docs or add an `.env.example` file to the project root with a comment inside. Then it's clear that an `.env` file is required. In the example env. you could also add dummy env. variables with comments what & when variables are required.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#114
No description provided.