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:
- The body of a for-in should be wrapped in an if statement to filter unwanted properties from the pro
- [Solved] AES encryption in ie11 results in an error (missing ‘)‘
- How to Solve pinia Error in ts File
- ERROR Error: [copy-webpack-plugin] patterns must be an array
- Using ts-node to Execute .ts files Error [Solved]
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- uniapp [Vue warn]: Error in onLoad hook: “TypeError: Attempting to change the setter of an unconfigu
- [Solved] Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension
- [Solved] Vue Element Date plug-in reports an error in form validation
- [Solved] ERROR in ./src/main.ts Module not found: Error: Can‘t resolve ‘xxx‘
- [Solved] component import error is declared in the statement of components
- The toast light prompt of vant in Vue reports an error
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- [Solved] SyntaxError: E:\IdeaProject\src\main.js: Identifier ‘ElementPlus‘ has already been declared
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- Error creating webgl context [How to Solve]
- Vue installs sass loader directly, and node sass reports an error
- Such a simple serialization system.text.json.serialization also reports an error?
- ‘webpack dev server’ is not an internal or external command, nor is it a runnable program or batch file. Solution: error in cnpm run dev:
- [Solved] React Dependency Error: Invalid tag name “^np.0.2“ of package “react@^np.0.2“: Tags may not have an