-
-
Notifications
You must be signed in to change notification settings - Fork 356
[Svelte] Warning / suggested configuration when installing via composer #1012
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
Comments
Hi! Yea, it looks like we need to: A) Allow for svelte 3 or 4 in https://github.com/symfony/ux/blob/2.x/src/Svelte/assets/package.json - assuming there are no BC breaks in how you initialize Svelte, it will be as simple as changing that number. If there ARE changes, then we'll need to see about it. But ideally we would still support Svelte 3 and 4 to avoid a BC break. B) In https://github.com/symfony/webpack-encore, we also need to allow Volunteer for someone to make a set of PR's? Maybe @ChqThomas or @zairigimad (who added ux-svelte and svelte support to Encore). |
Hello! Thanks for the detailed issue :) A) It's recommended to replace the type B) But to get rid of the
But adding this line doesn't work with v4 so we have to add it conditionally This is related to the webpack svelte-loader : sveltejs/svelte-loader#234 (comment) |
Make sure you render that into an element :)
|
Installing ux-svelte via
composer require symfony/ux-svelte
have warning / missing webpack config entry. I'm not sure though if this is related to Svelte or UX, since it does not export the path./internal
when addingconditionNames
to the Webpack configuration.The problem
symfony new --webapp my-app
composer require symfony/ux-svelte
yarn install
&&yarn build
Dependencies added and installed:
This produces a warning, but still build successfully:
Attempting to fix the warning by changing default webpack configuration:
This will produce, if attempting to build again by
yarn build
, the following error message:Which can be fixed by updating Svelte to ^4.0 in
packages.json
, this is however probably a "solution" unlessux-svelte
can increment Svelte version without breaks:With a single dependency warning from ux-svelte:
The text was updated successfully, but these errors were encountered: