Skip to content

Docker container fails to build webpack #211

@sand7000

Description

@sand7000

I see:

ERROR in /opt/mbee/ve/tsconfig.json
/opt/mbee/ve/tsconfig.json
[tsl] ERROR
      TS2688: Cannot find type definition file for 'angular-flatpickr'.
  The file is in the program because:
    Entry point for implicit type library 'angular-flatpickr'

ERROR in /opt/mbee/ve/tsconfig.json
/opt/mbee/ve/tsconfig.json
[tsl] ERROR
      TS2688: Cannot find type definition file for 'angular-promise-extras'.
  The file is in the program because:
    Entry point for implicit type library 'angular-promise-extras'

ERROR in /opt/mbee/ve/tsconfig.json
/opt/mbee/ve/tsconfig.json
[tsl] ERROR
      TS2688: Cannot find type definition file for 'angular-ui-tree-filter'.
  The file is in the program because:
    Entry point for implicit type library 'angular-ui-tree-filter'

ERROR in /opt/mbee/ve/tsconfig.json
/opt/mbee/ve/tsconfig.json
[tsl] ERROR
      TS2688: Cannot find type definition file for 'ckeditor'.
  The file is in the program because:
    Entry point for implicit type library 'ckeditor'

ERROR in /opt/mbee/ve/tsconfig.json
/opt/mbee/ve/tsconfig.json
[tsl] ERROR
      TS2688: Cannot find type definition file for 'ckeditor-plugins'.
  The file is in the program because:
    Entry point for implicit type library 'ckeditor-plugins'

5 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 5 errors in 24868 ms

webpack seems to try to make some more progress after this but then hangs forever after hitting some warnings:

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  veApp (6.97 MiB)
      js/veApp.bundle.js

WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.74.0 compiled with 3 warnings in 14877 ms
<s> [webpack.Progress] 99% cache store build dependencies
<s> [webpack.Progress] 99% cache store build dependencies
<s> [webpack.Progress] 99% cache begin idle
<s> [webpack.Progress] 99% cache begin idle
<s> [webpack.Progress] 100% 

I'm not very familiar with webpack. I found this:

https://stackoverflow.com/questions/53885107/typescript-cant-find-module-flatpickr-even-though-it-includes-typescript-types

but their suggestion of setting "moduleResolution": "node" already seems to be set in tsconfig.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions