[Bug report] ie11 does not run components script.
See original GitHub issue- I confirm that this is an issue rather than a question.
Bug report
ie11 does not run components script.
After the build, the template comes up, but the script does not run at all.
Version
most current vuepress 1.0.0-alpha.42
Steps to reproduce
create .vuepress/componenets/Temp.vue
<template>
<div>test</div>
</template>
<script>
console.log('TEST SCRIPT');
export default {
data: function() {
return {
temp: 'ABCD'
};
}
};
</script>
npm run build
What is expected?
Print ‘TEST SCRIPT’ text in IE11 CONSOLE.
experience like on Chrome.
What is actually happening?
Nothing.
Other relevant information
In the basic state without doing anything, ie11, an error about the arrow function basically occurs.
- Your OS: Windows10
- Node.js version: 9.11.2
- Browser version: IE11
- Is this a global or local install? local
- Which package manager did you use for the install? npm
- Does this issue occur when all plugins are disabled?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
IE 11 not running some javascript on some websites
IE 11 not running some javascript on some websites · 1. Have you installed all the updates for Internet Explorer 11 from Windows...
Read more >IE11 no longer works when upgrading react-scripts from 3.4.3 ...
Describe the bug. I get the following error when launching IE11 after upgrading to react-scripts v4.0.1: Error: You must pass a component to...
Read more >Reactjs class components not rendered but functions are ...
In React we write ES6 code that is newer version of java script, and some of older ... It's because IE 11 doesn't...
Read more >Internet Explorer 11 will no longer be supported ... - SAP Blogs
To ensure a secure environment for running business-critical solutions, SAP recommends using the latest version of a modern and secure browser.
Read more >Internet Explorer 11 (IE11) shows a blank page when logging ...
Resolving The Problem · 1. Turn off Compatibility mode (Settings > Compatibility View Settings > Untick everything). · 2. Settings > Internet Options...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was successful. Thanks @xxholly32
I modified my
config.js
file as follows:hi, @ulivz i found a way to work on ie11
vuepress commit
demo config commit
i think the problem is it cant babel vuepress in node_modules. and when i use
useBuiltIns: 'entry'
vuepress doesnt have config to add “@babel/polyfill”my company is more complicate. there it is
I would appreciate your reply
你好, @ulivz 我找到一个方法可以在ie11下跑
vuepress commit
demo config commit
我认为这里的问题是babel无法转义node_modules的vuepress,而且在用了
useBuiltIns: 'entry'
vuepress并没有提供配置去全局加"@babel/polyfill"我公司的配置更复杂,如下
如果得到您的回复我将非常感激