Comments (2)
This is new, possibly one of packages introduced breaking changes. I'll try to check what's going on tomorrow.
from play-ng2-webpack2.
Hi, I encountered the same error as you and was able to fix it by editing the lib
field in ui/src/tsconfig.spec.json to:
"lib": [
"es2016",
"dom"
]
Since I updated to angular 4.2.4 and also updated the supporting packages I also got 2 other errors when running sbt test. These can be fixed in the following way.:
Error 1
[00:27:47] I/launcher - Running 1 instances of WebDriver
[00:27:47] I/direct - Using ChromeDriver directly...
[00:27:47] E/direct - Error code: 135
[00:27:47] E/direct - Error message: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
[00:27:47] E/direct - Error: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
This error can be fixed by adding the following the scripts in the package.json:
"scripts": {
"webdriver-update": "webdriver-manager update"
}
and then running npm run webdriver-update
in the ui folder.
Error 2
[01:51:40] I/launcher - Running 1 instances of WebDriver
[01:51:40] I/direct - Using ChromeDriver directly...
[01:51:42] E/launcher - Error: TSError: ⨯ Unable to compile TypeScript
e2e/app.e2e-spec.ts (12,45): Argument of type '"IT WORKS! - SASS + TS = <3"' is not assignable to parameter of type 'Expected<Promise<string>>'. (2345)
This error is an ongoing problem see: DefinitelyTyped/DefinitelyTyped#15215
A temporary fix is to add <any>
after expect
in ui/e2e/app.e2e-spec.ts:
expect<any>(page.getParagraphText()).toEqual('IT WORKS! - SASS + TS = <3');
However there probably are more elegant fixes for this.
from play-ng2-webpack2.
Related Issues (9)
- Running on Windows 10? HOT 11
- normalize_file_names.sh not found HOT 3
- Integrating play-ng2-webpack2 with ionic3 HOT 1
- Update to recent Angular Versions HOT 3
- Updates HOT 6
- Play refresh angular content HOT 3
- Lazy loading that webpack require 0.chunk.js is invalid url HOT 2
- Error during ng build: ENOTEMPTY "...\public\ui\" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-ng2-webpack2.