Closed klodoma closed 1 year ago
Very strange. We don't use babel env for our packages.
@klodoma can you provide us with a reproducible test case? I don't think this something caused by @fortawesome/vue-fontawesome
but it could be.
After digging deep enough, I found out the following:
Our webpack.mix.js
looks is like the following:
const mix = require('laravel-mix');
require('laravel-mix-transpile-node-modules');
const tailwindcss = require('tailwindcss');
mix.js('resources/js/app.js', 'public/js')
.transpileNodeModules()
.vue()
.sass('resources/sass/app.scss', 'public/css')
.options({
processCssUrls: false,
postCss: [tailwindcss('./tailwind.config.js')],
})
.browserSync({
proxy: 'http://127.0.0.1:3621/',
open: false,
port: 3600,
ui: {
port: 3601,
},
})
.disableSuccessNotifications()
.version();
Disabling require('laravel-mix-transpile-node-modules');
and .transpileNodeModules()
(removing it) fixes the build but we still have to investigate, we have that in for a reason.
As I see it now it's either laravel-mix-transpile-node-modules
or @fortawesome/vue-fontawesome
(or together) that causes the issue, it definitely happens once we added fortawesome
like described in the first post.
Please leave this open, I'll try to provide a repo to reproduce it...
Hey @klodoma ---
You still having issues with this ?
@klodoma ---
Going to go ahead and close this issue ... if you get us a reproducible repo we can re-open.
Describe the bug
I have a laravel application with vuejs.
I tried to install vuejs fontawesome but I don't get it working:
I've added this in app.js:
npm run dev
fails:Reproducible test case It's in the description
Expected behavior Build succeeds.
Desktop (please complete the following information):
Additional context A very strange thing is that his happens on all linux machines I've tried(dev, pipeline). On a windows machine it seems to work.
I tried installing all required packages that build says it's missing:
babel-preset-env
still without success.Any ideas?