I want to create and serve a ng app. The problem is that after following the installation of angular 5 (+ionic) I found myself have the same problem over and over again and I have no idea what is causing it. I don't really understand what is the issue but I cannot serve any angular app.
The way I can resolve this is by a complete format of C:\ drive and reinstall anything from scratch. Last time I did it was 2 days ago. And before that 7 days ago.
This is all the stuff I get in the cmd.exe:
D:\!MY PROJECTS\APP-test>ng new engi
create engi/e2e/app.e2e-spec.ts (286 bytes)
create engi/e2e/app.po.ts (208 bytes)
create engi/e2e/tsconfig.e2e.json (235 bytes)
create engi/karma.conf.js (923 bytes)
create engi/package.json (1309 bytes)
create engi/protractor.conf.js (722 bytes)
create engi/README.md (1020 bytes)
create engi/tsconfig.json (363 bytes)
create engi/tslint.json (3097 bytes)
create engi/.angular-cli.json (1239 bytes)
create engi/.editorconfig (245 bytes)
create engi/.gitignore (516 bytes)
create engi/src/assets/.gitkeep (0 bytes)
create engi/src/environments/environment.prod.ts (51 bytes)
create engi/src/environments/environment.ts (387 bytes)
create engi/src/favicon.ico (5430 bytes)
create engi/src/index.html (291 bytes)
create engi/src/main.ts (370 bytes)
create engi/src/polyfills.ts (2405 bytes)
create engi/src/styles.css (80 bytes)
create engi/src/test.ts (1085 bytes)
create engi/src/tsconfig.app.json (211 bytes)
create engi/src/tsconfig.spec.json (304 bytes)
create engi/src/typings.d.ts (104 bytes)
create engi/src/app/app.module.ts (316 bytes)
create engi/src/app/app.component.html (1141 bytes)
create engi/src/app/app.component.spec.ts (986 bytes)
create engi/src/app/app.component.ts (207 bytes)
create engi/src/app/app.component.css (0 bytes)
Installing packages for tooling via npm.
Installed packages for tooling via npm.
Project 'engi' successfully created.
D:\!MY PROJECTS\APP-test>cd engi
D:\!MY PROJECTS\APP-test\engi>ng serve
** NG Live Development Server is listening on localhost:4200, open your
browser on http://localhost:4200/ **
Date: 2017-12-04T19:00:14.752Z
Hash: 96b1bdc547c1ab33ed03
Time: 4145ms
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 3.25 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 257 bytes [initial]
[rendered]
chunk {styles} styles.bundle.js (styles) 246 bytes [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 861 kB [initial] [rendered]
ERROR in multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
Module not found: Error: Can't resolve 'D:\' in 'D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\models\webpack-configs'
resolve 'D:\' in 'D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\models\webpack-configs'
Parsed request is a directory
using description file: D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\package.json (relative path:
./models/webpack-configs)
after using description file: D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\package.json (relative path:
./models/webpack-configs)
No description file found
as directory
existing directory
using path: D:\index
No description file found
after using path: D:\index
no extension
D:\index doesn't exist
.js
D:\index.js doesn't exist
.json
D:\index.json doesn't exist
[D:\package.json]
[D:\index\package.json]
[D:\index]
[D:\index.js]
[D:\index.json]
# multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
ERROR in multi ./src/polyfills.ts
Module not found: Error: Can't resolve 'D:\' in 'D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\models\webpack-configs'
resolve 'D:\' in 'D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\models\webpack-configs'
Parsed request is a directory
using description file: D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\package.json (relative path:
./models/webpack-configs)
after using description file: D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\package.json (relative path:
./models/webpack-configs)
No description file found
as directory
existing directory
using path: D:\index
No description file found
after using path: D:\index
no extension
D:\index doesn't exist
.js
D:\index.js doesn't exist
.json
D:\index.json doesn't exist
[D:\package.json]
[D:\index\package.json]
[D:\index]
[D:\index.js]
[D:\index.json]
# multi ./src/polyfills.ts
ERROR in multi ./src/styles.css
Module not found: Error: Can't resolve 'D:\' in 'D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\models\webpack-configs'
resolve 'D:\' in 'D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\models\webpack-configs'
Parsed request is a directory
using description file: D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\package.json (relative path:
./models/webpack-configs)
after using description file: D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\package.json (relative path:
./models/webpack-configs)
No description file found
as directory
existing directory
using path: D:\index
No description file found
after using path: D:\index
no extension
D:\index doesn't exist
.js
D:\index.js doesn't exist
.json
D:\index.json doesn't exist
[D:\package.json]
[D:\index\package.json]
[D:\index]
[D:\index.js]
[D:\index.json]
# multi ./src/styles.css
ERROR in Error: Child compilation failed:
Entry module not found: Error: Can't resolve 'D:\' in 'D:\!MY
PROJECTS\APP-test\engi\node_modules\#angular\cli\models\webpack-configs':
Error: Can't resolve 'D:\' in 'D:\!MY PROJECTS\APP-
test\engi\node_modules\#angular\cli\models\webpack-configs'
- compiler.js:76
[engi]/[html-webpack-plugin]/lib/compiler.js:76:16
- Compiler.js:304 compile
[engi]/[webpack]/lib/Compiler.js:304:11
- Compiler.js:514 applyPluginsAsync.err
[engi]/[webpack]/lib/Compiler.js:514:14
- Tapable.js:202 next
[engi]/[tapable]/lib/Tapable.js:202:11
- CachePlugin.js:78 Compiler.<anonymous>
[engi]/[webpack]/lib/CachePlugin.js:78:5
- Tapable.js:206 Compiler.applyPluginsAsyncSeries
[engi]/[tapable]/lib/Tapable.js:206:13
- Compiler.js:511 compilation.seal.err
[engi]/[webpack]/lib/Compiler.js:511:11
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[engi]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:680 self.applyPluginsAsync.err
[engi]/[webpack]/lib/Compilation.js:680:19
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[engi]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:671 self.applyPluginsAsync.err
[engi]/[webpack]/lib/Compilation.js:671:11
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[engi]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:666 self.applyPluginsAsync.err
[engi]/[webpack]/lib/Compilation.js:666:10
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[engi]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:662 sealPart2
[engi]/[webpack]/lib/Compilation.js:662:9
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[engi]/[tapable]/lib/Tapable.js:195:46
webpack: Failed to compile.
Remove the ! from your directory name.
(Adding here from the comment for resolution)
Related
current behavior
preact build --brotli prints the following error:
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
other relevant information
My app is a standard preact-cli 'Default' (preact-cli template).
Not using the --brotli flag builds as desired/expected.
It's clear the js files are being built to .br but with no filename.
Environment Info:
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 # 2.80GHz
Binaries:
Node: 18.12.1
npm: 8.4.1
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.54)
npmPackages:
preact: ^10.11.2 => 10.11.2
preact-cli: ^3.4.1 => 3.4.1
preact-render-to-string: ^5.2.6 => 5.2.6
preact-router: ^4.1.0 => 4.1.0
Per the preact-cli documentation combined with the only walkthrough I could find on expected behavior I expected to see "... all the generated javascript files also have a .js.br files next to them."
Steps to reproduce the behavior:
preact build --brotli
See error
error
preact build --brotli
‼ WARN Could not find sw.js in C:\... Using the default service worker.
bundle.*****.esm.js ⏤ 91.3 kB
polyfills.*****.esm.js ⏤ 2.18 kB
route-REDACT.chunk.6bef3.css ⏤ 236 B
route-REDACT.chunk.*****.esm.js ⏤ 849 B
route-REDACT.chunk.*****.esm.js ⏤ 1.54 kB
route-REDACT.chunk.64635.css ⏤ 138 B
route-REDACT.chunk.*****.esm.js ⏤ 641 B
route-REDACT.chunk.*****.esm.js ⏤ 294 B
sw.js ⏤ 10.9 kB
sw-esm.js ⏤ 10.9 kB
polyfills.77b1f.js ⏤ 2.28 kB
index.html ⏤ 1.66 kB (-19 B)
200.html ⏤ 1.17 kB
bundle.ccccc.css ⏤ 5.36 kB
route-REDACT.chunk.230c8.css ⏤ 139 B
route-REDACT.chunk.*****.esm.js ⏤ 405 B
route-REDACT.chunk.f85cc.css ⏤ 571 B
bundle.bbbbb.js ⏤ 92.7 kB
route-REDACT.chunk.f4a3f.js ⏤ 412 B
route-REDACT.chunk.4a8c5.js ⏤ 1.36 kB
route-REDACT.chunk.56f91.js ⏤ 2.14 kB
route-REDACT.chunk.e7d3e.js ⏤ 1.16 kB
route-REDACT.chunk.68634.js ⏤ 293 B
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN asset size limit: The following asset(s) exceed the recommended size limit (195 KiB).
This can impact web performance.
Assets:
bundle.aaaaa.esm.js (376 KiB)
bundle.bbbbb.js (390 KiB)
‼ WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (195 KiB). This can impact web performance.
Entrypoints:
bundle (785 KiB)
bundle.ccccc.css
bundle.bbbbb.js
bundle.aaaaa.esm.js
`your text`‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN asset size limit: The following asset(s) exceed the recommended size limit (195 KiB).
This can impact web performance.
Assets:
bundle.aaaaa.esm.js (376 KiB)
bundle.bbbbb.js (390 KiB)
‼ WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (195 KiB). This can impact web performance.
Entrypoints:
bundle (785 KiB)
bundle.ccccc.css
bundle.bbbbb.js
bundle.aaaaa.esm.js
Fix for this issue was release as preact-cli v3.4.3.
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)
I'm having a hard time deploying my app.
Using node 16.14.2 and npm 8.5.0.
My package versions are as follows:
{
"name": "tic-tac-toe",
"version": "0.1.0",
"private": true,
"dependencies": {
"#testing-library/jest-dom": "\^5.16.3",
"#testing-library/react": "\^12.1.4",
"#testing-library/user-event": "\^13.5.0",
"react": "\^18.0.0",
"react-dom": "\^18.0.0",
"react-scripts": "5.0.0",
"react-widgets": "\^5.8.4",
"web-vitals": "\^2.1.4"
},
I am able to get the issue simply by creating a default app (npx create-react-app my-app, adding import ComboBox from 'react-widgets/ComboBox'; to my index.js file, installing dependencies with npm install && npm install react-widgets, and running npm start.
The console output is as follows:
Failed to compile.
Module not found: Error: Can't resolve 'react-widgets/ComboBox' in '/home/twtduck/ttt/src'
assets by path static/ 1.62 MiB
asset static/js/bundle.js 1.61 MiB [emitted] (name: main) 1 related asset
asset static/js/node_modules_web-vitals_dist_web-vitals_js.chunk.js 6.91 KiB [emitted] 1 related asset
asset static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg 2.57 KiB [emitted] (auxiliary name: main)
asset index.html 1.67 KiB [emitted]
asset asset-manifest.json 546 bytes [emitted]
runtime modules 31.7 KiB 16 modules
modules by path ./node_modules/ 1.48 MiB 96 modules
modules by path ./src/ 18.1 KiB
modules by path ./src/*.css 8.82 KiB
./src/index.css 2.72 KiB [built] [code generated]
./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./src/index.css 1.37 KiB [built] [cod
e generated]
./src/App.css 2.72 KiB [built] [code generated]
./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./src/App.css 2 KiB [built] [code gen
erated]
modules by path ./src/*.js 5.71 KiB
./src/index.js 1.83 KiB [built] [code generated]
./src/App.js 2.49 KiB [built] [code generated]
./src/reportWebVitals.js 1.39 KiB [built] [code generated]
./src/logo.svg 3.61 KiB [built] [code generated]
WARNING in src/index.js
Line 7:8: 'ComboBox' is defined but never used no-unused-vars
ERROR in ./src/index.js 9:0-46
Module not found: Error: Can't resolve 'react-widgets/ComboBox' in '/home/twtduck/ttt/src'
resolve 'react-widgets/ComboBox' in '/home/twtduck/ttt/src'
Parsed request is a module
using description file: /home/twtduck/ttt/package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
/home/twtduck/ttt/src/node_modules doesn't exist or is not a directory
looking for modules in /home/twtduck/ttt/node_modules
existing directory /home/twtduck/ttt/node_modules/react-widgets
using description file: /home/twtduck/ttt/node_modules/react-widgets/package.json (relative path: .)
using description file: /home/twtduck/ttt/node_modules/react-widgets/package.json (relative path: ./ComboBox)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox doesn't exist
.web.mjs
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.web.mjs doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.mjs doesn't exist
.web.js
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.web.js doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.json doesn't exist
.web.jsx
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.web.jsx doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.jsx doesn't exist
as directory
/home/twtduck/ttt/node_modules/react-widgets/ComboBox doesn't exist
/home/twtduck/node_modules doesn't exist or is not a directory
/home/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in /home/twtduck/ttt/node_modules
existing directory /home/twtduck/ttt/node_modules/react-widgets
using description file: /home/twtduck/ttt/node_modules/react-widgets/package.json (relative path: .)
using description file: /home/twtduck/ttt/node_modules/react-widgets/package.json (relative path: ./ComboBox)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox doesn't exist
.web.mjs
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.web.mjs doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.mjs doesn't exist
.web.js
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.web.js doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.json doesn't exist
.web.jsx
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.web.jsx doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/home/twtduck/ttt/node_modules/react-widgets/ComboBox.jsx doesn't exist
as directory
/home/twtduck/ttt/node_modules/react-widgets/ComboBox doesn't exist
The strange part about this is that it works fine on Windows, but not Ubuntu. I've tried re-installing the server from a fresh image, to no success. I've also tried downgrading to react 17, which also doesn't work. Suggestions?
woltjer
can you try with this?
import { ComboBox } from 'react-widgets'
with this way you will get a part of react-widgets
that is similar to:
import { useState, useContex } from 'react'
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?
I downloaded one Angular project from the Internet with an Angular select component.
Here is the original example:
https://material.angular.io/components/select/overview#resetting-the-select-value
They have a demo on the following link:
https://stackblitz.com/angular/qodvbqymxae
I downloaded that demo to my computer, but when doing:
$ ng serve
I get the error:
ERROR in Error: Tried to find bootstrap code, but could not. Specify either statically analyzable bootstrap code or pass in an entryModule to the plugins options.
at Object.resolveEntryModuleFromMain (D:\_System\Hatuey\Desktop\angular-material-select\node_modules\#ngtools\webpack\src\entry_resolver.js:131:11)
at Promise.resolve.then.then (D:\_System\Hatuey\Desktop\angular-material-select\node_modules\#ngtools\webpack\src\angular_compiler_plugin.js:239:54)
at process._tickCallback (internal/process/next_tick.js:109:7)
as you can see on the following full output:
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
Date: 2018-01-07T09:15:56.348Z
Hash: 93425b9cdaae6fb908b2
Time: 10331ms
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 2.93 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 636 bytes [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 154 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 854 kB [initial] [rendered]
ERROR in Error: Tried to find bootstrap code, but could not. Specify either statically analyzable bootstrap code or pass in an entryModule to the plugins options.
at Object.resolveEntryModuleFromMain (D:\_System\Hatuey\Desktop\angular-material-select\node_modules\#ngtools\webpack\src\entry_resolver.js:131:11)
at Promise.resolve.then.then (D:\_System\Hatuey\Desktop\angular-material-select\node_modules\#ngtools\webpack\src\angular_compiler_plugin.js:239:54)
at process._tickCallback (internal/process/next_tick.js:109:7)
webpack: Failed to compile.
webpack: Compiling...
Date: 2018-01-07T09:15:58.101Z
Hash: c2a123371dfcb5513a4e
Time: 884ms
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry]
chunk {main} main.bundle.js (main) 2.93 kB [initial]
chunk {polyfills} polyfills.bundle.js (polyfills) 636 bytes [initial]
chunk {styles} styles.bundle.js (styles) 154 kB [initial]
chunk {vendor} vendor.bundle.js (vendor) 854 kB [initial]
ERROR in Error: Tried to find bootstrap code, but could not. Specify either statically analyzable bootstrap code or pass in an entryModule to the plugins options.
at Object.resolveEntryModuleFromMain (D:\_System\Hatuey\Desktop\angular-material-select\node_modules\#ngtools\webpack\src\entry_resolver.js:131:11)
at Promise.resolve.then.then (D:\_System\Hatuey\Desktop\angular-material-select\node_modules\#ngtools\webpack\src\angular_compiler_plugin.js:239:54)
at process._tickCallback (internal/process/next_tick.js:109:7)
webpack: Failed to compile.
On the README.md file provided by: stackblitz.com (when export) they say:
This project was generated with Angular CLI version 1.2.1.
On my local computer I get the following:
$ ng version
...
Angular CLI: 1.5.4
Node: 6.11.2
OS: win32 x64
Angular: 5.1.3
...
If you want to try by yourself, you can do:
$ mkdir angular-material-select
$ cd angular-material-select
$ git clone git#github.com:napolev/angular-material-select.git .
$ npm install
$ ng serve
How do I make this demo project work?
Extract AppModule from main.ts into it's own file app.module.ts
Extract DemoMaterialModule from main.ts into it's own file
Add DemoMaterialModule to AppModule's imports list