mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-27 05:15:56 +03:00
[GH-ISSUE #377] Setting up dev environment for BoostNote.next help #168
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#168
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 @oakypokey on GitHub (Mar 21, 2020).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/377
Current behavior
When I try
npm run devafter cloning the repo, it fails to compile because I believe I need to include some AWS amplify API keys? I didn't run into this issue with the previous version of BoostNote and I've never come across is before.Do I need to create my own instance of AWS amplify, and if so, do I need to configure it in a particular way?
Below is what the console spat out when I tried npm run dev
calvin@atlas:~/devCode/opensource/BoostNote.next$ npm run dev > boostnote.next@0.2.1 dev /home/calvin/devCode/opensource/BoostNote.next > env-cmd cross-env NODE_ENV=development TS_NODE_PROJECT="tsconfig-webpack.json" webpack-dev-server --mode development --open-page "app" ℹ 「wds」: Project is running at http://localhost:3000/ ℹ 「wds」: webpack output is served from http://localhost:3000/app ℹ 「wds」: Content not from webpack is served from /home/calvin/devCode/opensource/BoostNote.next ℹ 「wds」: 404s will fallback to /app ℹ 「wdm」: wait until bundle finished: /app/////////////////// ✖ 「wdm」: Hash: 2c1f844866c398e963e6 Version: webpack 4.40.2 Time: 52710ms Built at: 21/03/2020 2:27:40 pm 178 assets Entrypoint main = bundle.js [1] multi (webpack)-dev-server/client?http://localhost:3000 (webpack)/hot/dev-server.js ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? react-hot-loader/patch webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server ./src/index.tsx 112 bytes {main} [built] [./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js] 943 bytes {main} [built] [./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js?] 1.42 KiB {main} [built] [./node_modules/querystring-es3/index.js] 127 bytes {main} [built] [./node_modules/react-dev-utils/formatWebpackMessages.js] 4.06 KiB {main} [built] [./node_modules/react-dev-utils/launchEditorEndpoint.js] 330 bytes {main} [built] [./node_modules/react-dom/index.js] 1.33 KiB {main} [built] [./node_modules/react-error-overlay/lib/index.js] 341 KiB {main} [built] [./node_modules/react-hot-loader/dist/react-hot-loader.development.js] 95.3 KiB {main} [built] [./node_modules/react-hot-loader/patch.js] 229 bytes {main} [built] [./node_modules/react/index.js] 190 bytes {main} [built] [./node_modules/webpack-dev-server/client/index.js?http://localhost:3000] (webpack)-dev-server/client?http://localhost:3000 4.29 KiB {main} [built] [./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {main} [built] [./node_modules/webpack/hot/only-dev-server.js] (webpack)/hot/only-dev-server.js 2.52 KiB {main} [built] [./src/index.tsx] 1.29 KiB {main} [built] + 2035 hidden modules WARNING in EnvironmentPlugin - AMPLIFY_AUTH_IDENTITY_POOL_ID environment variable is undefined. You can pass an object with default values to suppress this warning. See https://webpack.js.org/plugins/environment-plugin for example. WARNING in EnvironmentPlugin - AMPLIFY_AUTH_REGION environment variable is undefined. You can pass an object with default values to suppress this warning. See https://webpack.js.org/plugins/environment-plugin for example. WARNING in EnvironmentPlugin - AMPLIFY_PINPOINT_APPID environment variable is undefined. You can pass an object with default values to suppress this warning. See https://webpack.js.org/plugins/environment-plugin for example. WARNING in EnvironmentPlugin - AMPLIFY_PINPOINT_REGION environment variable is undefined. You can pass an object with default values to suppress this warning. See https://webpack.js.org/plugins/environment-plugin for example. WARNING in EnvironmentPlugin - BOOST_NOTE_BASE_URL environment variable is undefined. You can pass an object with default values to suppress this warning. See https://webpack.js.org/plugins/environment-plugin for example. ERROR in ./src/lib/i18n.ts Module not found: Error: Can't resolve '../locales/esES' in '/home/calvin/devCode/opensource/BoostNote.next/src/lib' @ ./src/lib/i18n.ts 5:0-35 17:13-17 @ ./src/components/App.tsx @ ./src/index.tsx @ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? react-hot-loader/patch webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server ./src/index.tsx Child html-webpack-plugin for "index.html": 1 asset Entrypoint undefined = index.html [./node_modules/html-webpack-plugin/lib/loader.js!./index.html] 1.5 KiB {0} [built] [./node_modules/lodash/lodash.js] 528 KiB {0} [built] [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built] [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built] ℹ 「wdm」: Failed to compile.Steps to reproduce
Environment
Desktop/Web
@sbencoding commented on GitHub (Mar 23, 2020):
I think the reason while the build fails is that
src/lib/i18n.tsincludes a file calledsrc/locales/esES.tswhen in reality it's calledsrc/locales/esEs.ts(the S is small at the end of the filename)@sbencoding commented on GitHub (Mar 24, 2020):
@oakypokey The issue I wrote above is fixed with commit
f4012eca80You should execute
git pullin the project root, and try to build again to see if it solves your issue.@oakypokey commented on GitHub (Mar 24, 2020):
@sbencoding Hey! Yeah that worked! Thanks :)