I am trying to get my KotlinJS running in a Docker container. Normally this should not be a problem. The programm itself is a KVision-website and runs without errors. When putting it into a Docker container however I get the following lines of error:
:browserDevelopmentRun > 100%✖ 「wdm」: Hash: 5648f22f33affcbeb012
Version: webpack 4.41.2
Time: 5665ms
Built at: 01/29/2021 6:09:03 PM
Asset Size Chunks Chunk Names
main.bundle.js 4.67 KiB main main
Entrypoint main = main.bundle.js
[0] multi (webpack)-dev-server/client?http://localhost:4000 ./kotlin/dashboard-ae.js 40 bytes {main}
[1] multi ./kotlin/dashboard-ae.js 28 bytes
ERROR in multi ./kotlin/dashboard-ae.js
Module not found: Error: Can't resolve 'kotlin-source-map-loader' in '/usr/src/app/build/js/packages/dashboard-ae'
# multi ./kotlin/dashboard-ae.js main[0]
ERROR in multi (webpack)-dev-server/client?http://localhost:4000 ./kotlin/dashboard-ae.js
Module not found: Error: Can't resolve 'kotlin-source-map-loader' in '/usr/src/app/build/js/packages/dashboard-ae'
# multi (webpack)-dev-server/client?http://localhost:4000 ./kotlin/dashboard-ae.js main[0]
ERROR in multi (webpack)-dev-server/client?http://localhost:4000 ./kotlin/dashboard-ae.js
Module not found: Error: Can't resolve 'kotlin-source-map-loader' in '/usr/src/app/build/js/packages/dashboard-ae'
# multi (webpack)-dev-server/client?http://localhost:4000 ./kotlin/dashboard-ae.js main[1]
(node:157) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/usr/src/app/build/js/node_modules/kvision-kvision-bootstrap'
I already searched for it and found this solution, it does not work for me. Probably because I am at Kotlin Version 1.3.72.
Any suggestions how to fix this?
Related
Need desperate help! :alert:
I have been trying to debug an app for the last 3 days and now I’m very stuck here.It works on my localhost but brakes on production. Mainly, my biggest mistake was that I’ve coded a lot on my machine besides sending it to production little by little. I’ve already moved from errors to errors but with no final success. I’ve installed webpack at one point and I think I shouldn’t but now I can’t get rid of it. When I try to
rake assets:precompile
that’s what I get:
Running via Spring preloader in process 82485
Calling DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call DidYouMean.correct_error(error_name, spell_checker)' instead.
yarn install v1.22.19
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 0.27s.
Calling DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call DidYouMean.correct_error(error_name, spell_checker)' instead.
yarn run v1.22.19
$ webpack --config ./config/webpack/webpack.config.js
assets by status 0 bytes [cached] 1 asset
Entrypoint application =
Entrypoint custom = custom.js
orphan modules 39 bytes [orphan] 1 module
./app/assets/stylesheets/application.scss 39 bytes [built] [code generated] [1 error]
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value.
Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/
ERROR in ./app/assets/stylesheets/application.scss (./app/assets/stylesheets/application.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./app/assets/stylesheets/application.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
╷
10 │ #import "font-awesome";
│ ^^^^^^^^^^^^^^
╵
app/assets/stylesheets/application.scss 10:9 root stylesheet
# ./app/assets/stylesheets/application.scss
ERROR in ./app/assets/stylesheets/application.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
╷
10 │ #import "font-awesome";
│ ^^^^^^^^^^^^^^
╵
app/assets/stylesheets/application.scss 10:9 root stylesheet
at tryRunOrWebpackError (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/HookWebpackError.js:88:9)
at webpack_require_module (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/Compilation.js:5055:12)
at webpack_require (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/Compilation.js:5012:18)
at /Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/Compilation.js:5083:20
at symbolIterator (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/neo-async/async.js:3485:9)
at done (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/neo-async/async.js:3527:9)
at Hook.eval [as callAsync] (eval at create (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/tapable/lib/Hook.js:18:14)
at /Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/Compilation.js:4990:43
at symbolIterator (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/neo-async/async.js:3482:9)
-- inner error --
Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
╷
10 │ #import "font-awesome";
│ ^^^^^^^^^^^^^^
╵
app/assets/stylesheets/application.scss 10:9 root stylesheet
at Object. (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/css-loader/dist/cjs.js!/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/sass-loader/dist/cjs.js!/Users/ju-arrighi/code/Ju-Arrighi/utero/app/assets/stylesheets/application.scss:1:7)
at /Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:441:11
at Hook.eval [as call] (eval at create (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/tapable/lib/HookCodeFactory.js:19:10), :7:1)
at Hook.CALL_DELEGATE [as _call] (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/tapable/lib/Hook.js:14:14)
at /Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/Compilation.js:5057:39
at tryRunOrWebpackError (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/HookWebpackError.js:83:7)
at webpack_require_module (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/Compilation.js:5055:12)
at webpack_require (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/Compilation.js:5012:18)
at /Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/webpack/lib/Compilation.js:5083:20
at symbolIterator (/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/neo-async/async.js:3485:9)
Generated code for /Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/css-loader/dist/cjs.js!/Users/ju-arrighi/code/Ju-Arrighi/utero/node_modules/sass-loader/dist/cjs.js!/Users/ju-arrighi/code/Ju-Arrighi/utero/app/assets/stylesheets/application.scss
1 | throw new Error("Module build failed (from ./node_modules/sass-loader/dist/cjs.js):\nSassError: Can't find stylesheet to import.\n ╷\n10 │ #import "font-awesome";\n │ ^^^^^^^^^^^^^^\n ╵\n app/assets/stylesheets/application.scss 10:9 root stylesheet");
ERROR in application
Module not found: Error: Can't resolve './app/assets/javascripts/application.js' in '/Users/ju-arrighi/code/Ju-Arrighi/utero'
ERROR in custom
Module not found: Error: Can't resolve './app/assets/stylesheets/custom.scss' in '/Users/ju-arrighi/code/Ju-Arrighi/utero'
3 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.74.0 compiled with 4 errors and 1 warning in 4098 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
rake aborted!
jsbundling-rails: Command build failed, ensure yarn is installed and yarn build runs without errors
internal:/Users/ju-arrighi/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb:85:in require' <internal:/Users/ju-arrighi/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in require'
-e:1:in `'
Tasks: TOP => assets:precompile => javascript:build
(See full trace by running task with --trace)
After two days of fighting with the bare installation and attempting to implement the simplest of examples following a guide of Egghead.
I am having trouble with node modules finding any of its components for some reason.
Epics Index:
import { Observable } from 'rxjs';
import {combineEpics} from 'redux-observable';
function loadStoriesEpic(action$) {
return action$
.do(action => console.log(action))
.ignoreElements();
}
export const rootEpic = combineEpics(loadStoriesEpic);
My actual error on console that doesn't compiles.
RROR in ./node_modules/rxjs/Observable.js Module not found: Error:
Can't resolve 'rxjs-compat/Observable' in
'/Users/laxosceles/react-portfolio-solstice/node_modules/rxjs' #
./node_modules/rxjs/Observable.js 6:9-42 #
./node_modules/redux-observable/lib/esm/ActionsObservable.js #
./node_modules/redux-observable/lib/esm/index.js # ./src/index.js #
multi (webpack)-dev-server/client?http://localhost:8080
webpack/hot/dev-server ./src
ERROR in ./node_modules/rxjs/Subject.js Module not found: Error: Can't
resolve 'rxjs-compat/Subject' in
'/Users/laxosceles/react-portfolio-solstice/node_modules/rxjs' #
./node_modules/rxjs/Subject.js 6:9-39 #
./node_modules/redux-observable/lib/esm/createEpicMiddleware.js #
./node_modules/redux-observable/lib/esm/index.js # ./src/index.js #
multi (webpack)-dev-server/client?http://localhost:8080
webpack/hot/dev-server ./src
ERROR in ./node_modules/rxjs/observable/from.js Module not found:
Error: Can't resolve 'rxjs-compat/observable/from' in
'/Users/laxosceles/react-portfolio-solstice/node_modules/rxjs/observable'
# ./node_modules/rxjs/observable/from.js 6:9-47 #
./node_modules/redux-observable/lib/esm/ActionsObservable.js #
./node_modules/redux-observable/lib/esm/index.js # ./src/index.js #
multi (webpack)-dev-server/client?http://localhost:8080
webpack/hot/dev-server ./src
ERROR in ./node_modules/rxjs/observable/merge.js Module not found:
Error: Can't resolve 'rxjs-compat/observable/merge' in
'/Users/laxosceles/react-portfolio-solstice/node_modules/rxjs/observable'
# ./node_modules/rxjs/observable/merge.js 6:9-48 #
./node_modules/redux-observable/lib/esm/combineEpics.js #
./node_modules/redux-observable/lib/esm/index.js # ./src/index.js #
multi (webpack)-dev-server/client?http://localhost:8080
webpack/hot/dev-server ./src
ERROR in ./node_modules/rxjs/observable/of.js Module not found: Error:
Can't resolve 'rxjs-compat/observable/of' in
'/Users/laxosceles/react-portfolio-solstice/node_modules/rxjs/observable'
# ./node_modules/rxjs/observable/of.js 6:9-45 #
./node_modules/redux-observable/lib/esm/ActionsObservable.js #
./node_modules/redux-observable/lib/esm/index.js # ./src/index.js #
multi (webpack)-dev-server/client?http://localhost:8080
webpack/hot/dev-server ./src
ERROR in ./node_modules/rxjs/operator/filter.js Module not found:
Error: Can't resolve 'rxjs-compat/operator/filter' in
'/Users/laxosceles/react-portfolio-solstice/node_modules/rxjs/operator'
# ./node_modules/rxjs/operator/filter.js 6:9-47 #
./node_modules/redux-observable/lib/esm/operators.js #
./node_modules/redux-observable/lib/esm/index.js # ./src/index.js #
multi (webpack)-dev-server/client?http://localhost:8080
webpack/hot/dev-server ./src
ERROR in ./node_modules/rxjs/operator/map.js Module not found: Error:
Can't resolve 'rxjs-compat/operator/map' in
'/Users/laxosceles/react-portfolio-solstice/node_modules/rxjs/operator'
# ./node_modules/rxjs/operator/map.js 6:9-44 #
./node_modules/redux-observable/lib/esm/createEpicMiddleware.js #
./node_modules/redux-observable/lib/esm/index.js # ./src/index.js #
multi (webpack)-dev-server/client?http://localhost:8080
webpack/hot/dev-server ./src
ERROR in ./node_modules/rxjs/operator/switchMap.js Module not found:
Error: Can't resolve 'rxjs-compat/operator/switchMap' in
'/Users/laxosceles/react-portfolio-solstice/node_modules/rxjs/operator'
# ./node_modules/rxjs/operator/switchMap.js 6:9-50 #
./node_modules/redux-observable/lib/esm/createEpicMiddleware.js #
./node_modules/redux-observable/lib/esm/index.js # ./src/index.js #
multi (webpack)-dev-server/client?http://localhost:8080
webpack/hot/dev-server ./src Child html-webpack-plugin for
"index.html":
Asset Size Chunks Chunk Names
db7499f085244c16cc8c.hot-update.json 44 bytes [emitted]
+ 1 hidden asset
Entrypoint undefined = ./index.html
I do not think it has something to do with the issue, but yet I am going to say it , I recently added Yarn to my project and now I installed it with "yarn add" I do not think it should be an issue given the dependency shows in my package.json
I bet you are using rxjs v6 and redux-observable v.0.x because I see there are imports errors (that's what has been the breaking change in rxjs v6 and redux-observable v.0.x is compatible with rxjs5).
You need to upgrade redux-observable or downgrade rxjs to version 5.
A github issue.
After installing rokujs via npm, Can't seem to get past this error:
The package is installed correctly.
No other errors reported.
Any ideas?
ERROR in ./~/node-ssdp/lib/index.js
Module not found: Error: Can't resolve 'dgram' in 'C:\VisualStudio\Repos\App\App.PWA\node_modules\node-ssdp\lib'
# ./~/node-ssdp/lib/index.js 3:12-28
# ./~/node-ssdp ^.*index$
# ./~/node-ssdp/index.js
# ./~/rokujs/lib/roku.js
# ./~/rokujs/index.js
# ./ClientApp/app/components/home/home.component.ts
# ./ClientApp/app/app.shared.module.ts
# ./ClientApp/app/app.browser.module.ts
# ./ClientApp/boot.browser.ts
# multi event-source-polyfill webpack-hot-middleware/client?path=__webpack_hmr&dynamicPublicPath=true ./ClientApp/boot.browser.ts
Hi I am beginner for the Mapd database , i started to practicing the CURD Operation in mapd database its working fine, and right now i am started to working on link rendering visualization in the mapd database using the Vega , so i followed the link to the mapd to front-end connector link1 but i tried windows 10 system as well as ubuntu 14 LTS , npm version 5.0.3 and node version v8.1.3 for building "mapd-connector.js" , but unfortunately "mapd-connector.js" not building , i don't know how to do that , if any one knows how to build "mapd-connector.js" please share the link , Thank you..while building time i am getting this error.
WARNING in ./~/ws/lib/BufferUtil.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/Release/bufferutil in /home/siftgrid/temp/mapd-connector/node_modules/ws/lib
# ./~/ws/lib/BufferUtil.js 8:19-57
WARNING in ./~/ws/lib/BufferUtil.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/default/bufferutil in /home/siftgrid/temp/mapd-connector/node_modules/ws/lib
# ./~/ws/lib/BufferUtil.js 10:19-57
WARNING in ./~/ws/lib/Validation.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/Release/validation in /home/siftgrid/temp/mapd-connector/node_modules/ws/lib
# ./~/ws/lib/Validation.js 8:19-57
WARNING in ./~/ws/lib/Validation.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/default/validation in /home/siftgrid/temp/mapd-connector/node_modules/ws/lib
# ./~/ws/lib/Validation.js 10:19-57
I'm trying to install and utilize this brunch.io skeleton. I keep running into this error:
20 Apr 19:40:21 - info: application started on http://localhost:3333/
20 Apr 19:40:24 - info: compiling
20 Apr 19:40:28 - error: Resolving deps of app\app.ts failed. Could not load module 'app\home' from 'C:\Users\tyler.WORKGROUP\Documents\GitHub\zenith-folio\app'. Possible solution: add 'app' to package.json and `npm install`.
20 Apr 19:40:28 - error: Resolving deps of app\about\index.ts failed. Could not load module 'app\about\about.tpl' from 'C:\Users\tyler.WORKGROUP\Documents\GitHub\zenith-folio\app\about'. Possible solution: add 'app' to package.json and `npm install`.
20 Apr 19:40:28 - info: compiling.
20 Apr 19:40:29 - info: compiled 477 files into 2 files, copied index.html in 8.4 sec
I'm trying my best to understand what's going on here, but I'm not sure. I can see that I need to add "app" to package.json, but I don't know how or which "app" it's specifying. Is it talking about:
the folder called "app"
a file called app.ts
Or is there something else I'm missing?
Message is pretty clear: Could not load module 'app\home', it means that you have unresolved import in app.ts which possibly looks like import ... from 'app\home';