error TS1086: An accessor cannot be declared in an ambient context
Error ts1086 error resolution
After the NPM package is installed, an error is reported when running the project.
The error information is as follows
ERROR in node_modules/xxx/xxx/xxxx.d.ts(15,9): error TS1086: An accessor cannot be declared in an ambient context.
Solution:
Modify tsconfig.json
file
{
"compilerOptions": {
"skipLibCheck": true
}
}
Read More:
- How to Solve Vite package error
- [Solved] typescript Error: Cannot find name ‘__dirname‘
- Vue3 + vite install element-plus error [How to Solve]
- [Solved] VS Code Error: Vetur can‘t find ‘tsconfig.json‘ or ‘jsconfig.json‘
- [Solved] node-xlsx Write excel Error: TypeError: n.indexOf is not a function
- Error: Cannot find module ‘./application‘ [How to Solve]
- [Solved] Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- How to Solve NPM installation -g @view/client Error
- Method of identifying vite alias path by idea webstorm
- Error: Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Syntax Error: Error: Cannot find module ‘cache-loader‘
- [Solved] Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer‘
- [Solved] Node sass version 7.0.0 is incompatible with ^ 4.0.0 | ^ 5.0.0 | ^ 6.0.0
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- [Solved] gyp ERR! stack Error: Could not find any Python installation to use
- Vue Install less Error: While resolving: [email protected]
- [Solved] AES encryption in ie11 results in an error (missing ‘)‘
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- The vue3 project Error: Cannot find module’vue-loader-v16/package.json’