Closed Tebra closed 6 years ago
@Tebra Looks like the 'production'
in that productionTip
line somehow happened to be not quoted. I will investigate into it later today.
@SevenOutman Maybe you could change the webpack config and add JSON.stringify way of defining enviroment variables:
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production')
}
}),
Taken from a similar error from React : React Issue
From the comment made by the user gaearon
@Tebra You're right, that's exactly where the problem was. It's been fixed in vue-aplayer@1.1.1
. Thank you very much.
Hey thanks for the quick fix! Glad to be of some help, thanks again for doing this!
This player really helped out in my project, so mad respect!
@Tebra Glad you like it! Btw I'll be working on a music service package for Laravel too and hopefully these two packages will work together well. Make sure to keep an eye on it if you're interested.
The error message:
The place where
vue.runtime
throws the error:productionTip: process.env.NODE_ENV !== 'production',
Current Version "vue-aplayer": "^1.1.0"
I used a laravel-vue template then I created my own wrapper for the vue-aplayer and it worked beautifully up until now.
Steps to reproduce:
welcome.vue
page (so that it's immediately called)In the console you get the error above.
Without this library everything functions normally. I hope you can show me the way! If you have an idea where the issue could be, that would be great.
All the best!