๋ฒ๊ทธ๋ฅผ ์ ๊ณ ํฉ๋๋ค
๋ชจ๋์ ์ฐพ์ ์ ์์: ์ค๋ฅ: '/home/node/web/bundles/pimui/js'์ 'pim/form-builder'๋ฅผ ํ์ธํ ์ ์์ต๋๋ค.
pim-community-standard 3.0.21 ์๋ก ์ค์น.
https://github.com/akeneo/pim-community-standard/archive/v3.0.21.tar.gz
yarn install v1.13.0
warning package.json: No license field
warning [email protected]: No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.65s.
yarn run v1.13.0
warning package.json: No license field
$ yarn run sync && NODE_PATH=node_modules webpack --config $npm_package_config_source/webpack.config.js --env=prod
warning package.json: No license field
$ NODE_PATH=node_modules node $npm_package_config_check --source=$npm_package_config_source
Starting webpack from /home/node in prod mode
WebpackCleanupPlugin: 0 file(s) deleted.
Version: webpack 3.5.5
Time: 10761ms
Asset Size Chunks Chunk Names
main.min.js 191 kB 0 [emitted] main
vendor.min.js 701 bytes 1 [emitted] vendor
manifest.min.js 1.44 kB 2 [emitted] manifest
main.min.js.map 931 kB 0 [emitted] main
vendor.min.js.map 1.76 kB 1 [emitted] vendor
manifest.min.js.map 7.72 kB 2 [emitted] manifest
ERROR in ./web/bundles/pimui/js/index.js
Module not found: Error: Can't resolve 'pim/form-builder' in '/home/node/web/bundles/pimui/js'
@ ./web/bundles/pimui/js/index.js 1:13-138
@ multi babel-polyfill ./web/bundles/pimui/js/index.js
@vsilent๋ ๊ฐ์ ๋ฌธ์ ๋ฅผ ๊ฒช์์ต๋๋ค. ์ ๊ฒฝ์ฐ์๋ ํธ์คํธ์์ ๋
ธ๋๋ฅผ ์ฌ์ฉํ๋ฉด์ PHP์ฉ ๋์ปค๋ฅผ ์ฌ์ฉํ ๋์์ต๋๋ค. ํธ์คํธ ์์คํ
์์ php๋ก ์ ํํ๊ณ php bin/console pim:installer:dump-require-paths
์คํ ํ ์์ ๋์์ต๋๋ค.
์ด ๋ฌธ์ ๋ ๋นํ์ฑ ์ํ๋ก ๋ง๊ฐ๋์์ต๋๋ค. ํ์ํ๋ฉด ๋ค์ ์ด์ด์ฃผ์ธ์.
๋ฌธ์ ์ธ์ฌ.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@vsilent๋ ๊ฐ์ ๋ฌธ์ ๋ฅผ ๊ฒช์์ต๋๋ค. ์ ๊ฒฝ์ฐ์๋ ํธ์คํธ์์ ๋ ธ๋๋ฅผ ์ฌ์ฉํ๋ฉด์ PHP์ฉ ๋์ปค๋ฅผ ์ฌ์ฉํ ๋์์ต๋๋ค. ํธ์คํธ ์์คํ ์์ php๋ก ์ ํํ๊ณ
php bin/console pim:installer:dump-require-paths
์คํ ํ ์์ ๋์์ต๋๋ค.