TS2440: Import declaration conflicts with local declaration of 'PluginConfig'.
See original GitHub issueHi Sir!
Bug report I am getting following below error :
ERROR in [at-loader] ./node_modules/protractor/built/index.d.ts:5:10 TS2440: Import declaration conflicts with local declaration of ‘PluginConfig’. ERROR in [at-loader] ./node_modules/protractor/built/index.d.ts:5:24 TS2440: Import declaration conflicts with local declaration of ‘ProtractorPlugin’.
- Node Version:
10.5.0
- Protractor Version:
~5.1.2
- Angular Version:
^4.2.4
- Browser(s):
any
- Operating System and Version
Windows 10
- Your protractor configuration file
const { SpecReporter } = require(‘jasmine-spec-reporter’);
exports.config = { allScriptsTimeout: 11000, specs: [ ‘./e2e/**/*.e2e-spec.ts’ ], capabilities: { ‘browserName’: ‘chrome’ }, directConnect: true, baseUrl: ‘http://localhost:4200/’, framework: ‘jasmine’, jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, print: function() {} }, onPrepare() { require(‘ts-node’).register({ project: ‘e2e/tsconfig.e2e.json’ }); jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); } };
- Steps to reproduce the bug - npm run build fail
Feature Request Please help me to resolve
Issue Analytics
- State:
- Created 4 years ago
- Reactions:15
- Comments:27 (1 by maintainers)
Top GitHub Comments
Today I have downgraded the typescript version from 3.7.x to 3.6.x.,It is working fine . Thank you mattcasey
May not be the best solution for everyone, but you should be able to fix this by adding the following in tsconfig.json: