Tag Archives: element

[Solved] Vue/cli install element error: Error: cannot find module ‘Babel plugin component’

Use the elementui component library to introduce elementui as needed. Configure the error according to the code in the official document!!

Error: cannot find module ‘Babel plugin component’

fisrt install babel-plugin-component:  

npm install babel-plugin-component -D

vue/cli   There is no.Babelrc file, but babel.config.js file. When importing on demand, you need to configure it in babel.config.js file

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset',
  ],
  plugins: [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ]
  ]
};

Error message of element and Vue framework

The above error prompt error in render function: “typeerror: cannot read property ‘$options’ of undefined” is because I show the code here:
& lt; El form item label = “picture configuration” required & gt& lt;/ el=form-item> The picture configuration here cannot be written separately with the BTN tag of element

 

The XPath tool plug-in for Firefox browser (not supported by advanced versions of Firefox)

After looking for the XPath tool on Firefox for a long time, I made a little summary

####About the XPath plug-in for Firefox:

1、firebug

From https://addons.mozilla.org/en-US/firefox/addon/firebug/ You can choose the version to download; the latest one is five years ago… Restart after installation

2、WebDriver Element Locator

Download address: https://addons.mozilla.org/en-US/firefox/addon/element-locator-for-webdriv/

3. At present, the official download Plug-in connection of XPath checker has not been found. Free network disk of XPath checker https://yun.baidu.com/s/1ntieVyD

All the above are from the Internet. If you have any questions, please leave a message