I have been closely following the angular documentation regarding webpack 2 integration with angular 2. My code can be found on GitHub here, and it is configured using the webpack.dev.js
setup.
When attempting to run the development build using npm start
(specifically,
webpack-dev-server --inline --progress --port 8080
), I encounter a series of TS2304
errors like the ones below:
ERROR in [at-loader] src\app\app.component.ts:5:15
TS2304: Cannot find name 'require'.
ERROR in [at-loader] src\app\app.component.ts:6:14
TS2304: Cannot find name 'require'.
What could be causing this issue?