mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
[GH-ISSUE #307] Master doesn't compile on Win10 #114
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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 productionnpm 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
(4. npm run pack)
Environment
@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?
@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...)
@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.
@Rokt33r commented on GitHub (Jan 27, 2020):
I'll thanks for reminding.
@AWolf81 commented on GitHub (Mar 13, 2020):
@Rokt33r I've had the same issue and an empty
.envfile helped.I think it would be good to mention it in the docs or add an
.env.examplefile to the project root with a comment inside.Then it's clear that an
.envfile is required. In the example env. you could also add dummy env. variables with comments what & when variables are required.