Several errors on start task
See original GitHub issuePlease fill below information if issuing a bug report.
Expected behaviour
Following guidelines for contributing results in some build error
Actual behaviour
I’ve just cloned the repository master branch, then after launching yarn start:
` [413] ./node_modules/zone.js/dist/long-stack-trace-zone.js 6.22 kB {1} [built] + 399 hidden modules
ERROR in [at-loader] ./demo/app/app.component.ts:12:15 TS2304: Cannot find name ‘require’.
ERROR in [at-loader] ./demo/app/layout/header.component.ts:2:22 TS2304: Cannot find name ‘require’.
ERROR in [at-loader] ./demo/app/layout/header.component.ts:3:23 TS2304: Cannot find name ‘require’.
ERROR in [at-loader] ./demo/polyfills.ts:4:1 TS2304: Cannot find name ‘require’.
ERROR in [at-loader] ./demo/polyfills.ts:8:5 TS2304: Cannot find name ‘process’.
ERROR in [at-loader] ./demo/polyfills.ts:15:5 TS2304: Cannot find name ‘require’.
ERROR in [at-loader] ./src/ng-select/ng-select.component.ts:49:15 TS2304: Cannot find name ‘require’.
ERROR in [at-loader] ./src/ng-select/ng-select.component.ts:50:14 TS2304: Cannot find name ‘require’. Child html-webpack-plugin for “index.html”: Asset Size Chunks Chunk Names index.html 1.46 MB 0 [0] ./node_modules/html-webpack-plugin/lib/loader.js!./demo/index.ejs 1.58 kB {0} [built] [1] ./node_modules/lodash/lodash.js 540 kB {0} [built] [2] (webpack)/buildin/global.js 488 bytes {0} [built] [3] (webpack)/buildin/module.js 495 bytes {0} [built] webpack: Failed to compile. `
More Info
ng-select version: latest master version clone
browser: -
reproducible in demo page: -
Maybe I am missing something, but I can’t figure out what.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top GitHub Comments
Uhm, I tried reinstalling all from fresh but no way. Anyway I resolved inserting in demo/tsconfig.json file these rows:
"types": [ "node" ], "typeRoots": [ "../node_modules/@types" ]
@andrea-spotsoftware I pushed missing typeRoots, it should work fine now on Windows 😃