vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

We're sorry but work doesn't work properly without JavaScript enabled.

Open alien-neko opened this issue 6 years ago • 16 comments

Version

4.3.1

Environment info

We're sorry but work doesn't work properly without JavaScript enabled. Please enable it to continue.

Steps to reproduce

I created a VueJS app and I'm getting the following error when I look at the source code in the web browse

We're sorry but work doesn't work properly without JavaScript enabled. Please enable it to continue.

What is expected?

Vue running smoothly

What is actually happening?

Nothing

alien-neko avatar May 12 '20 08:05 alien-neko

It's expected. The Preview panel will try to render HTML but it does not run JavaScript so it only shows the content of the <noscript> tag.

The full source code is shown in the Response tab.

haoqunjiang avatar May 12 '20 08:05 haoqunjiang

i also have this problem when building for production , blank page with this error in response tab .

thesecondaithinks avatar Aug 01 '20 05:08 thesecondaithinks

I have the same problem, Xcode Asks to enable javascript, how can I enable it?

elizavetaanisimova avatar Aug 02 '20 20:08 elizavetaanisimova

my problem solved by replacing vue instantiation code in main.js with the following :

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');

one of my colleagues did this i don't know from where.

thesecondaithinks avatar Aug 05 '20 10:08 thesecondaithinks

I had mine resolved. It was due to a CORS policy setting. You may want to check your server's CORS policy setting. For Django, it needs following to be set in the settings.py if CORs module is installed. CORS_ALLOW_ALL_ORIGINS = True

For Apache httpd, it maybe setup in the .htaccess like such: Header always set Access-Control-Allow-Origin *

Other servers may have different syntax or configurations.

kkang386 avatar Sep 16 '20 04:09 kkang386

https://github.com/vuejs/vue-cli/issues/5470#issuecomment-669112550 It workes in my case!

actforjason avatar Apr 20 '21 12:04 actforjason

Thank you for your solution to this problem. Your method worked in my case which was using Django as backend and Vue.js as frontend.

Rastra17 avatar Jan 31 '22 11:01 Rastra17

me too, is a bug

<strong>We're sorry but platform_serve doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>

When I disable the browser JS from safari and then re enable JS,

And the message will stay here forever

hktalent avatar Jun 09 '22 10:06 hktalent

When I use spring boot to access third-party interfaces(another local login service),It is a bug with " We're sorry but xxx doesn't work properly without JavaScript enabled. Please enable it to continue."

it seems that resource is not got from third-party local service 14D5632B

OMG-y avatar Jun 22 '22 10:06 OMG-y

我用vue-cli创建一个新项目,直接进行build,访问dist/index.html, 就提示这个

alamhubb avatar Jun 23 '22 08:06 alamhubb

+1 We're sorry but app2 doesn't work properly without JavaScript enabled. Please enable it to continue. http://localhost:8080/js/app.js net::ERR_CONNECTION_RESET

pickyouu avatar Jul 23 '22 06:07 pickyouu

I change "history" to "hash" in the router mode, then the bug is resolved

CailynH avatar Feb 12 '23 13:02 CailynH

my problem solved by replacing vue instantiation code in main.js with the following :

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');

one of my colleagues did this i don't know from where.

If this method doesn't work for you, try adding the following to the vue.config.js file:

const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  ...
  publicPath: './',
  outputDir:'dist',
  assetsDir:'static'
})

ning2510 avatar Mar 06 '23 02:03 ning2510

I change "history" to "hash" in the router mode, then the bug is resolved

it works for me too!

yanchenghust avatar Jun 29 '23 11:06 yanchenghust

my problem is vue versions with vuex versions is incompatible

donxia avatar Nov 27 '24 12:11 donxia

the first command npm run build to run the vue.js app and it fails . How this bug still exist why one one is resolving it its failing for the first hello world program

runningcodeio avatar Jan 05 '25 17:01 runningcodeio