symfony / webpack-encore

A simple but powerful API for processing & compiling assets built around Webpack
https://symfony.com/doc/current/frontend.html
MIT License
2.23k stars 198 forks source link

Can not build Admin CMS due to symfonyRouting isues #1354

Closed nereafidenet closed 5 days ago

nereafidenet commented 1 week ago

Actual Behavior

SULU interface doesn't correctly build

Expected Behavior

SULU interface to build and load successfully

Steps to Reproduce

Run npm i and npm run build inside CLI

Possible Solutions

Changing the webpack.config.js file that is located in vendor/sulu/sulu does not solve the issue

Currently using: Node v14.21.3 NPM 6.14.18

Logs for version ~2.5.11:

sulu-skeleton@ build /var/www/html/assets/admin webpack --mode production

1812 modules

WARNING in ./node_modules/sulu-admin-bundle/services/ResourceRequester/registries/resourceRouteRegistry.js 28:4-18 "export 'default' (imported as 'symfonyRouting') was not found in 'fos-jsrouting/router'

WARNING in ./node_modules/sulu-admin-bundle/services/ResourceRequester/registries/resourceRouteRegistry.js 41:11-25 "export 'default' (imported as 'symfonyRouting') was not found in 'fos-jsrouting/router'

WARNING in ./node_modules/sulu-admin-bundle/services/ResourceRequester/registries/resourceRouteRegistry.js 51:11-25 "export 'default' (imported as 'symfonyRouting') was not found in 'fos-jsrouting/router'

WARNING in ./node_modules/sulu-admin-bundle/stores/metadataStore/metadataStore.js 27:18-32 "export 'default' (imported as 'symfonyRouting') was not found in 'fos-jsrouting/router'

WARNING in ./node_modules/sulu-admin-bundle/containers/Badge/stores/BadgeStore.js 87:11-25 "export 'default' (imported as 'symfonyRouting') was not found in 'fos-jsrouting/router'

WARNING in ./node_modules/sulu-admin-bundle/views/List/toolbarActions/UploadToolbarAction.js 154:11-25 "export 'default' (imported as 'symfonyRouting') was not found in 'fos-jsrouting/router'

WARNING in ./node_modules/sulu-media-bundle/containers/ImageMap/ImageRenderer.js 97:11-25 "export 'default' (imported as 'symfonyRouting') was not found in 'fos-jsrouting/router'

Kocal commented 6 days ago

@alexander-schranz any help? :D

alexander-schranz commented 5 days ago

This issue was fixed see https://github.com/sulu/sulu/issues/7661#issuecomment-2484894553.

PS: Sulu does not use Webpack Encore for its admin build, it uses Webpack directly.

Kocal commented 5 days ago

Thanks Alexander :)