Hi,
I created a .NET Core 2.0 React App using the new project, ASP .NET Core Web Application and then choosing React.JS as the template. I added some controllers and some views. I then added some JSX scripts and called them from my views. Trouble
is, when I run it the JSX file line...
import * as React from 'react';
Throws the error...
0x800a1391 - JavaScript runtime error: 'require' is undefined
I tried downloading the babel core and loader packages using NPM (also installed Node.JS) but that doesn't seem to help.
I suspect this is an issue with the webpack config file, but why on earth would the template not facilitate being able to import the modules by default. Also, this seems to work in Chrome somewhat, though there is another issue in Chrome but I in Chome
no breakpoint get honored so I'm a little screwed there too. Plus it's terribly slow.
Any pointers would be appreciated.
Thanks!