Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Now (after the update) I get two build errors #187

Closed
sebilasse opened this issue Jul 31, 2017 · 2 comments
Closed

Now (after the update) I get two build errors #187

sebilasse opened this issue Jul 31, 2017 · 2 comments
Labels
Milestone

Comments

@sebilasse
Copy link

sebilasse commented Jul 31, 2017

@kitsonk
While the update described in dojo/widget-core#626 should work now, I get the following errors when $ dojo build -w

[... update :]
seeAlso darul75/web-react#12 (comment) ff.
after adding

"webpack": "^3.4.1",
"webpack-dev-server": "^2.6.1",

to my project's package.json most errors are gone, just

ERROR in /Users/sebi/Desktop/redaktorTS2/src/webcomponents/semantic/node_modules/@dojo/shim/Promise.d.ts
(14,40): error TS2693: 'Promise' only refers to a type, but is being used as a value here.

ERROR in ./~/@dojo/core/text.js
Module not found: Error: Can't resolve 'fs' in '/Users/sebi/Desktop/redaktorTS2/src/webcomponents/semantic/node_modules/@dojo/core'
 @ ./~/@dojo/core/text.js 34:65-78
 @ ./~/@dojo/core/main.js
 @ ./src/lib/SUI.ts
 @ ./src/widgets/Container/Container.ts
 @ ./src/App.ts
 @ ./src/main.ts
 @ multi webpack-dev-server/client? ./src/main.css ./src/main.ts

will figure out ...

@sebilasse sebilasse changed the title Now (after the update) I get build errors Now (after the update) I get two build errors Jul 31, 2017
@sebilasse
Copy link
Author

sebilasse commented Jul 31, 2017

Regarding the 2nd error
See fs / webpack webpack-contrib/css-loader#447
I would recommend to add to webpack.config.js

node: {
  fs: 'empty'
}

Fixed it for me. This is resolved here now. But leaving it open because the above could happen if anybody is using TS > 2.4.2

@agubler
Copy link
Member

agubler commented Aug 1, 2017

To resolve the first error please add es2015.promise lib to your tsconfig.json, for example:

		"lib": [
			"dom",
			"es5",
			"es2015.iterable",
			"es2015.promise",
			"es2015.symbol",
			"es2015.symbol.wellknown"
		],

@nicknisi nicknisi mentioned this issue Aug 4, 2017
3 tasks
@dylans dylans added this to the 2017.08 milestone Aug 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants