We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm';
This import is from the Livewire documentation: https://livewire.laravel.com/docs/alpine#manually-bundling-alpine-in-your-javascript-build
The text was updated successfully, but these errors were encountered:
PHP dependencies (vendor directory) are not available during the build of front-end assets in these Dockerfiles. You can do this:
vendor
// composer.json "post-update-cmd": [ ... "@php -r \"copy('vendor/livewire/livewire/dist/livewire.esm', 'resources/js/lib/livewire/livewire.esm');\"" ], // app.js import { Livewire, Alpine } from './lib/livewire/livewire.esm';
Then, run composer update and rebuild the image.
composer update
Sorry, something went wrong.
We need to expose vendor directory, this is not actually reliable to copy all dependencies.
The ESM module make relative imports like "../alpine/packages/alpinejs/dist/module.cjs.js", we can't copy every single file manually
Maybe this is a good occasion to work on it along with alpine & bun support as it's on the to-do list and would be a rewrite
No branches or pull requests
The docker build will fail if any javascript file import a resource from composer vendor folder (e.g Alpine / Livewire)
import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm';
This import is from the Livewire documentation: https://livewire.laravel.com/docs/alpine#manually-bundling-alpine-in-your-javascript-build
The text was updated successfully, but these errors were encountered: