Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error #1

Open
Bodarev opened this issue Jan 27, 2021 · 3 comments
Open

install error #1

Bodarev opened this issue Jan 27, 2021 · 3 comments

Comments

@Bodarev
Copy link

Bodarev commented Jan 27, 2021

i installed monofony/monofonfy succesful. before i tried install monofony/front-pack and have following error: http://joxi.ru/p27VRYviNqoNGm . Please help

@loic425
Copy link
Member

loic425 commented Jan 27, 2021

Hello @Bodarev

I will try myself tomorrow morning.

@loic425
Copy link
Member

loic425 commented Jan 27, 2021

I've just tried and I forgot something on the setup guide.
It's normal that Flex has removed your "front-pack". All is setup but dependencies has been "unpacked".

But you have two things left to do:
open you 'webpack.config.js`

const path = require('path');
const vendorUiPath = path.resolve(__dirname, 'vendor/monofony/ui-bundle');
const build = require('./config-builder');

const backendConfig = build('backend', `./assets/backend/`, vendorUiPath); // for admin
const frontendConfig = build('frontend', `./assets/frontend/`, vendorUiPath); // for front

module.exports = [backendConfig]; // for admin only
// module.exports = [frontendConfig]; // for front only
module.exports = [backendConfig, frontendConfig]; // both front and admin

and uncomment the two lines to build both admin and front (as my code above).
And run

yarn build

@loic425
Copy link
Member

loic425 commented Jan 27, 2021

Thank you for reporting this, I will edit the doc asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants