Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during loading ".../node_modules/karma-ui5" plugin: unknown estree node type 'ImportExpression', new syntax? #96

Closed
pwasem opened this issue Aug 14, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@pwasem
Copy link

pwasem commented Aug 14, 2019

Trying to to run karma gives me the following error:

npx karma start:

14 08 2019 09:50:11.412:ERROR [plugin]: Error during loading "/Users/d068098/Projects/syngenta/tp-ui-infra-util/tp-ui-setting-cycles/node_modules/karma-ui5" plugin:
  unknown estree node type 'ImportExpression', new syntax?
14 08 2019 09:50:11.521:ERROR [karma-server]: Server start failed on port 9876: Error: No provider for "framework:ui5"! (Resolving: framework:ui5)

karma.conf.js looks like this:

module.exports = function (config) {

	config.set({

		logLevel: config.LOG_INFO,

		browserConsoleLogOptions: {
			level: 'info'
		},

		frameworks: ['ui5'],

		ui5: {
			url: 'http://localhost:5000',
			mode: 'html',
			testpage: 'webapp/test/integration/opaTests.qunit.html'
		},

		browsers: ['ChromeHeadless'],

		concurrency: 1,

		singleRun: true,

		browserNoActivityTimeout: 600000,

		proxyValidateSSL: false

	});
};

package.json like this:

{
  "devDependencies": {
    "grunt-karma": "^3.0.2",
    "karma": "^4.1.0",
    "karma-chrome-launcher": "^2.2.0",
    "karma-ui5": "^1.0.1",
    "karma-webdriver-launcher": "^1.0.5"
  }
}
@matz3
Copy link
Member

matz3 commented Aug 14, 2019

This is related to https://github.com/SAP/ui5-builder/issues/309, which is fixed via SAP/ui5-builder#310 (v1.4.1).

Please re-install the karma-ui5 package to update your lockfile:

npm install karma-ui5

@matz3 matz3 closed this as completed Aug 14, 2019
@matz3 matz3 added the bug Something isn't working label Aug 14, 2019
@pwasem
Copy link
Author

pwasem commented Aug 21, 2019

@matz3 Thank you, it is working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants