how do I get a stylesheet working in react?
I am seeing the following errors in the terminal when I try to compile. All help appreciated.
ERROR in ./src/app.js
Module not found: Error: Can't resolve './module.css' in 'C:\Users\abe\Desktop\projects\firstapp\React_local_events\src'
@ ./src/app.js 29:0-40
i 「wdm」: Failed to compile.
i 「wdm」: Compiling...
× 「wdm」: Hash: 2f1c6cba9270b238f310
Version: webpack 4.35.0
Time: 219ms
Built at: 08/09/2019 5:14:27 PM
1 asset
Entrypoint app = app.js
[./src/app.js] 8.5 KiB {app} [built]
+ 127 hidden modules
WARNING in EnvironmentPlugin - MapboxAccessToken environment variable is undefined.
You can pass an object with default values to suppress this warning.
See https://webpack.js.org/plugins/environment-plugin for example.
ERROR in ./src/app.js
Module not found: Error: Can't resolve './module.css' in 'C:\Users\abe\Desktop\projects\firstapp\React_local_events\src'
@ ./src/app.js 29:0-40
i 「wdm」: Failed to compile.
i 「wdm」: Compiling...
× 「wdm」: Hash: d16147b7ba9b621ea136
Version: webpack 4.35.0
Time: 227ms
Built at: 08/09/2019 5:15:10 PM
Asset Size Chunks Chunk Names
2f1c6cba9270b238f310.hot-update.json 45 bytes [emitted]
app.2f1c6cba9270b238f310.hot-update.js 11.5 KiB app [emitted] app
app.js 2.54 MiB app [emitted] app
Entrypoint app = app.js app.2f1c6cba9270b238f310.hot-update.js
[./src/app.js] 8.5 KiB {app} [built]
[./src/modalStyles.css] 293 bytes {app} [built] [failed] [1 error]
+ 127 hidden modules
WARNING in EnvironmentPlugin - MapboxAccessToken environment variable is undefined.
You can pass an object with default values to suppress this warning.
See https://webpack.js.org/plugins/environment-plugin for example.
ERROR in ./src/modalStyles.css 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> .modal-wrapper {
| position: fixed;
| display: flex;
@ ./src/app.js 29:0-44
i 「wdm」: Failed to compile.