After cloning the repository, and running gulp serve, the webparts load correctly.
However, after running gulp nuke, I can no longer build the project.
Running gulp build produces the following output:
[16:03:50] Using gulpfile C:\Projects\_Testing\react-generic-app\gulpfile.js
[16:03:50] Starting gulp
[16:03:50] Starting 'build'...
[16:03:50] Starting subtask 'pre-copy'...
[16:03:50] Finished subtask 'pre-copy' after 7.53 ms
[16:03:50] Starting subtask 'sass'...
[16:03:51] Finished subtask 'sass' after 719 ms
[16:03:51] Starting subtask 'tslint'...
[16:03:51] Starting subtask 'typescript'...
[16:03:51] Starting subtask 'text'...
[16:03:51] Finished subtask 'text' after 8.29 ms
[16:03:53] Error - typescript - src\components\HelloWorld\HelloWorld.module.scss.ts(1,1): error TS2304: Cannot find name 'require'.
[16:03:53] Warning - tslint - src\index.tsx(1,13): error no-unused-variable: Unused import: 'React'
[16:03:53] Finished subtask 'tslint' after 1.76 s
[16:03:53] Error - 'typescript' sub task errored after 1.76 s
"TypeScript error(s) occurred."
[16:03:53] 'build' errored after 2.5 s
[16:03:53]
[16:03:53] ==================[ Finished ]==================
Warning - tslint - src\index.tsx(1,13): error no-unused-variable: Unused import: 'React'
Error - typescript - src\components\HelloWorld\HelloWorld.module.scss.ts(1,1): error TS2304: Cannot find name 'require'.
Error - 'typescript' sub task errored after 1.76 s
"TypeScript error(s) occurred."
[16:03:54] Project react-app version: 1.0.0
[16:03:54] Build tools version: 0.11.1
[16:03:54] Node version: v6.9.1
[16:03:54] Total duration: 5.45 s
[16:03:54] Task warnings: 1
Warning - tslint - src\index.tsx(1,13): error no-unused-variable: Unused import: 'React'
[16:03:54] Task errors: 2
Category
[ ] Question [x] Bug [ ] Enhancement
Observed Behavior
After cloning the repository, and running
gulp serve
, the webparts load correctly. However, after runninggulp nuke
, I can no longer build the project.Running
gulp build
produces the following output:Steps to Reproduce
@VesaJuvonen