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
Vue with Webpack : You are running Vue in development mode when building my app #5063
Comments
Tkt @LinusBorg because with NODE_ENV i have already the warning |
@ozee31 This alias |
@gaoqiankun hi newbie here, how can you do that please? |
This is the most unhelpful thread ever. I have this problem and the webpack define plugin code input suggestion from the documentation does not say which file to put it in. This makes no sense. |
Well of course it doesn't tell you that, since Vue itself doesn't come with a webpack config, which means you could have written it any way you want and saved it anywhere you want. If you don't know where your webpack config is or how to change it, you might have to learn about webpack. If you know where it is, how about sharing that information with us and maybe we can give you a more specific tip? |
Well my issue is very strange and may be related to this... the vue component won’t mount on to the dom/view correctly in production mode yet development is fine. Using Heroku + Ruby on Rails+ the webpacker gem. Node Environment is set for development. The asset precompilation through Rails assets precompile command works. Webpacker is successfully compiling during development. Vue debugging is not detecting vue in production but it is on local dev. Package.json seems to be working fine with scripts. In this framework the webpack config is buried in the gem framework and has presets that are supposed to “just work” or something... |
I would kindly ask you to open a topic on forum.vuejs.org. I'm active there and we can pick up where we left from here. A closed issue in the vue core repo is the wrong place for such a specific question. |
… On Mon, Oct 15, 2018 at 4:42 AM Thorsten Lünborg ***@***.***> wrote:
I would kindly ask you to open a topic on forum.vuejs.org. I'm active
there and we can pick up where we left from here.
A closed issue in the vue core repo is the wrong place for such a specific
question.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5063 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AWLbn3Zilh1ugUn-XyXYsOG7roYemMOlks5ulGaWgaJpZM4MQwhL>
.
|
I'm having the same issue @ericscottmarquez. Did you end up resolving it? |
Well guys since this issue, I split up my app and refactored everything, I put rails into api-mode and served json to a separate front end client made with pure whole-milk Nodejs. I used axios to make most requests and json web tokens for authentication and login-state management. Sorry I hope that course of action is do-able for some, it just made it easier on myself to separate the front and back end without the webpacker gem / node wrapper around rails. |
As I understand it there is no way to suppress the warning during development unless we switch to vue.min.js ? https://codepen.io/cawoodm/pen/gyaJBO - using vue.js with https://codepen.io/cawoodm/pen/qwOGJJ - using vue.min.js we get no warning. So why have a |
Docs all the time outdated. But anyway ERROR... I removed production env, single prod file, only this way it worked for me. Seems something wrong with loading config in webpack. |
I am also having this issue, not sure why this has been closed. In my webpack config, I have |
try adding |
i added Vue.config.productionTip = false after yet to have a issue |
hey every one i have this error You are running a development build of Vue. can anyone help me asap |
Vue.js version
2.2.1
Reproduction Link
Steps to reproduce
System: Ubuntu 16
Node: 6.10.0
npm: 3.10.10
Webpack: 1.14.0
I build my application whith cmd
npm run build
What is Expected?
I do not want to see the debug message on browser console
What is actually happening?
In browser console i have :
"You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See more tips at https://vuejs.org/guide/deployment.html"
build code
build.js
webpack.prod.conf.js
webpack.base.conf.js
The text was updated successfully, but these errors were encountered: