vue-cli lifted strict mode

When I imported the js file, the console error
Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
 
Cause of error: js file is used in the 'caller', 'callee', and 'arguments', but webpack packed build.js, strict mode is enabled by default, so the conflict
solution:
The webpack pack when strict mode disabled
Here I generated with vue-cli project
The basic steps

One: Download the installation package

  npm install babel-plugin-transform-remove-strict-mode -D

II: The .babelrc configuration is

  .babelrc configuration file to add

  {
  "plugins": ["transform-remove-strict-mode"]
  }

npm run dev

At this point, I'm being given a program (a strange error)

WARNING Compiled with 1 warnings 2:19:38 PM
warning in ./src/components/photos/PhotoList.vue

32:0-3 "export 'default' (imported as 'mui') was not found in '../../assets/dist/js/mui.min.js'

Some research

Three: the .babelrcl plugins inside the "transform-runtime" Delete

  This time on it! (This is why, wait FAQ)

(The basic problem is I get the following quote sliding js file to resolve the error)

 

 

 

 

 

 

 

 

Four: js I quote here and sliding a relationship

I still have a run-time error console

Slide time warning: Unable to preventDefault inside passive event listener

In the css styles in plus slide where you quote

touch-action: none;
Or added to the css styles
*{
touch-action: pan-y;
}
Enough
(Why is this? I do not understand, this waiting for answer)
 

Guess you like

Origin www.cnblogs.com/sweetworld/p/11368569.html