I successfully followed and executed 6 of the 7 SPX tutorials. In the last one "Document Card Example", I get the following error during build:
[16:20:50] Starting subtask 'configure-webpack'...
[16:20:51] Finished subtask 'configure-webpack' after 806 ms
[16:20:51] Starting subtask 'webpack'...
[16:20:53] Error - [webpack] 'dist':
./lib/webparts/documentCardExample/DocumentCardExampleWebPart.js
Module not found: Error: Can't resolve 'set-webpack-public-path' in 'D:\Dennis\OneDrive - Paeroa Community Support Trust\spfx\documentcardexample-webpart\lib\webparts\documentCardExample'
resolve 'set-webpack-public-path' in 'D:\Dennis\OneDrive - Paeroa Community Support Trust\spfx\documentcardexample-webpart\lib\webparts\documentCardExample'
Parsed request is a module
using description file: D:\Dennis\OneDrive - Paeroa Community Support Trust\spfx\documentcardexample-webpart\package.json (relative path: ./lib/webparts/documentCardExample)
after using description file: D:\Dennis\OneDrive - Paeroa Community Support Trust\spfx\documentcardexample-webpart\package.json (relative path: ./lib/webparts/documentCardExample)
resolve as module
D:\Dennis\OneDrive - Paeroa Community Support Trust\spfx\documentcardexample-webpart\lib\webparts\node_modules doesn't exist or is not a directory
D:\Dennis\OneDrive - Paeroa Community Support Trust\spfx\documentcardexample-webpart\lib\webparts\documentCardExample\node_modules doesn't exist or is not a directory
D:\Dennis\OneDrive - Paeroa Community Support Trust\spfx\documentcardexample-webpart\lib\node_modules doesn't exist or is not a directory
D:\Dennis\OneDrive - Paeroa Community Support Trust\spfx\node_modules doesn't exist or is not a directory
D:\Dennis\OneDrive - Paeroa Community Support Trust\node_modules doesn't exist or is not a directory
If I run the "Document Card Example" from a Git clone, it works. If I try to run the "React-Todo-Basic" sample from the same clone, I get a very similar the same error as above:
[16:01:36] Starting subtask 'configure-webpack'...
[16:01:37] Finished subtask 'configure-webpack' after 945 ms
[16:01:37] Starting subtask 'webpack'...
[16:01:46] Error - [webpack] 'dist':
./lib/webparts/todo/components/TodoContainer/TodoContainer.module.scss.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./TodoContainer.module.css in D:\sp-dev-fx-webparts\samples\react-todo-basic\lib\webparts\todo\components\TodoContainer
resolve file
D:\sp-dev-fx-webparts\samples\react-todo-basic\lib\webparts\todo\components\TodoContainer\TodoContainer.module.css doesn't exist
D:\sp-dev-fx-webparts\samples\react-todo-basic\lib\webparts\todo\components\TodoContainer\TodoContainer.module.css.webpack.js doesn't exist
Any help would be greatly appreciated :-)