Use in vue3:
var jweixin = require('jweixin-module');
It will be compiled with the error: require is not defined, there is no require module, change to import, because jweixin-module does not support export writing, so the introduction can not succeed.
Solution:
Use a third-party wrapper jdk: weixin-js-sdk
npm install weixin-js-sdk -S
import jweixin from 'weixin-js-sdk'
Read More:
- How to Solve Vue3 Import lodash error
- How to Solve Vue3 using deep syntax Error
- How to Solve Vue cli syntax Close Error
- Vue: How to Solve Eslint error
- How to Solve “Vue is not defined” Error
- How to Solve Vue cli configuration SCSS global variable error
- How to Solve VUE Error: Mixed spaces and tabs
- How to Solve Vue add element Install Error
- How to Solve Vue editor bridge error
- How to Solve Vue loading 3D model Error
- VUE: How to Solve NPM Always Install Error
- How to Solve @Vue/cli3.X Using less Error
- How to Solve Nodejs error: cannot find module ‘. /application’
- How to Solve Vue project Startup Error (Node Upgrade issue)
- How to Solve VUE Error: Avoid mutating a prop directly since the value will be overwritten …
- How to Solve Vscode save Vue file eslint error
- How to Solve Vue route jump repeated clicks Error
- Vue: How to Solve error avoided redundant navigation to current location: “/xxx”
- How to solve Uncaught (in promise) error in VUE?
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function