- How to solve noscript — doesn’t work properly without JavaScript enabled when serving a Vue App
- Solution 2
- Solution 3
- Solution 4
- Solution 5
- Related videos on Youtube
- Alexandru Nutu
- Comments
- Quick fix to empty page and noscript serving a Vue App
- The issue with App.vue
- Quick fix with explanation
- Saved searches
- Use saved searches to filter your results more quickly
- We’re sorry but work doesn’t work properly without JavaScript enabled. #5470
- We’re sorry but work doesn’t work properly without JavaScript enabled. #5470
- Comments
- Version
- Environment info
- Steps to reproduce
- What is expected?
- What is actually happening?
- [Solved] doesn’t work properly without JavaScript enabled. Please enable it to continue
- How doesn’t work properly without JavaScript enabled. Please enable it to continue Error Occurs?
- How To Solve doesn’t work properly without JavaScript enabled. Please enable it to continue Error?
- Solution 1: Disable Chrome Extension
- Solution 2: Change Port
- Conclusion
How to solve noscript — doesn’t work properly without JavaScript enabled when serving a Vue App
After 2.5 days of search I found that the content in index.html ( We’re sorry but basicapp doesn’t work properly without JavaScript enabled. Please enable it to continue. ) is not an error actually.
It is default text for those browsers in which javascript is not enable so don’t worry about this at all.
To run your application in dev mode you can use Yarn serve command. If you want to build your application then use yarn/npm build and configure/use the index.html present in dist folder without any doubt.
Solution 2
Change the port from 8080 to 8081,it worked for me. I opened another program with port 8080.May cause hash conflict
Solution 3
You need to disable the adblocker or run on incognito mode
Solution 4
Vue’s build directory, dist, is meant to be served by an HTTP server. Use npm’s serve package to serve the folder.
when in the dist folder or provide path to dist folder
Solution 5
This occured, when I accidentally set my web directory to the /public instead of the /dist directory. After I changed the apps root to point to the /dist directory in my nginx settings it worked fine.
Related videos on Youtube
Alexandru Nutu
Comments
I’m setting up a new Vue.JS application using the Vue UI interface. When I start the application using vue serve src/App.vue the application starts but it only displays in the page the default Home | About . When I inspect the page in the HTML I see:
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> at src/App.vue
I am working with the basic application created when running the Vue UI I am working with the basic application created when running the Vue UI If I run the application using the vue ui command followed by starting the application from the Vue UI it works. The reason I want to open the application using the command line is that in Cloud9 where I want to test the application the vue ui starts on localhost and I cannot find a way to open it. The only changes I made to the application files were done only to make the application run inside the Cloud9 container: changed the package.json added:
"dev": "webpack-dev-server --inline --progress --port 8080 --host 0.0.0.0 --config vue.config.js --public $C9_HOSTNAME",
guys, I am also facing the same issue. npm run serve is running fine but We are trying to build the code. once build is generated using npm run build or yarn build if you open the index.html present in dist folder, you find this error message in this html itself. Still have no clue why this error occurs
Quick fix to empty page and noscript serving a Vue App
Basic stuff here, so if you’re an advanced javascript/Vue developer, and don’t want to laugh out loud, just skip this. I decided to publish it anyway because the answers on StackOverflow to the same issue wasted my time. The solution was way easier that I felt like an idiot. In fact, it was my fault. but it seems it happens a lot since there are many similar requests on the internet. So, this might be helpful.
The issue with App.vue
template> to="/">Home | to="/about">About | :to="< name: 'About' >">About /> template>
We have 3 router-links. The second and third loads the same About view. but instead of a string I am passing an object with a name attribute. This is possible because Vue looks for a name attribute inside each route object. These are the routes:
const routes = [ path: '/', name: 'home', component: HomeView >, path: '/about', name: 'about', component: AboutView > ]
If you run the app with npm run serve you end up with a blank page (wtf!!). Inspecting the code you see this:
Quick fix with explanation
Did you spot the difference? In the routes I have
name: ‘about’ while in router-link I wrote
< name: 'About' >yes 😉 a typo. the string doesn’t match. must be lowercase. But the behavior of Vue interpreter is strange and you don’t have clear errors on console. An headache will arise. Now that I saved your life, leave a thumbs up 🙂 See ya next time,
Matt
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
We’re sorry but work doesn’t work properly without JavaScript enabled. #5470
We’re sorry but work doesn’t work properly without JavaScript enabled. #5470
Comments
Version
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?
What is actually happening?
The text was updated successfully, but these errors were encountered:
i also have this problem when building for production , blank page with this error in response tab .
I have the same problem, Xcode
Asks to enable javascript, how can I enable it?
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.
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.
[Solved] doesn’t work properly without JavaScript enabled. Please enable it to continue
Today When I run my Vue project I am facing the following error: We’re sorry but makedudeapp doesn’t work properly without JavaScript enabled. Please enable it to continue. in VueJs. In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Lets Get Start with This Article.
How doesn’t work properly without JavaScript enabled. Please enable it to continue Error Occurs?
When I run my Vue project I am facing the following error.
We're sorry but makedudeapp doesn't work properly without JavaScript enabled. Please enable it to continue.
So here I am writing all the possible solutions that I have tried to resolve this error.
How To Solve doesn’t work properly without JavaScript enabled. Please enable it to continue Error?
How To Solve doesn’t work properly without JavaScript enabled. Please enable it to continue Error?
To Solve doesn’t work properly without JavaScript enabled. Please enable it to continue Error Try To Change Project’s PORT This error occurs cause of Conflicting in Port If Your Project’s port is using somewhere else then you might face error. So Use Diff Port like 8081, 5555, Etc and Now, Your error will be solved.
doesn’t work properly without JavaScript enabled. Please enable it to continue
To Solve doesn’t work properly without JavaScript enabled. Please enable it to continue Error You need to Disable Some Chrome Extension In Order to resolve this error. Because Some Extensions are Blocking javascript like AdBlocker Extension and that’s why you are facing this error. Or You Can Also Run Your App In Different Browser Or Use incognito mode. And now Your error must be solved. Thank You.
Solution 1: Disable Chrome Extension
To Solve doesn’t work properly without JavaScript enabled. Please enable it to continue Error You need to Disable Some Chrome Extension In Order to resolve this error. Because Some Extensions are Blocking javascript like AdBlocker Extension and that’s why you are facing this error.
Or You Can Also Run Your App In Different Browser Or Use incognito mode. And now Your error must be solved. Thank You.
Solution 2: Change Port
Try To Change Project’s PORT This error occurs cause of Conflicting in Port If Your Project’s port is using somewhere else then you might face error. So Use Diff Port like 8081, 5555, Etc and Now, Your error will be solved.
Conclusion
It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
- ps1 cannot be loaded because running scripts is disabled on this system
- ‘vue-cli-service’ is not recognized as an internal or external command
- ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set
- Unchecked runtime.lastError: The message port closed before a response was received
- export ‘default’ (imported as ‘Vue’) was not found in ‘vue’