Error when using jsconfig in .NET Core w/ React

47 views Asked by At

I am trying to add a jsconfig file to my .NET Core with React App, but it has been failing when launching the app. When launching the app I am getting the following repeated error:

Microsoft.AspNetCore.SpaProxy.SpaProxyMiddleware: Information: SPA proxy is not ready. Returning temporary landing page.
Microsoft.AspNetCore.SpaProxy.SpaProxyLaunchManager: Error: Couldn't start the SPA development server with command 'npm start'.

The jsconfig file is placed in the Client App folder and has the following contents at the moment:

{
    "compilerOptions": {
        "allowSyntheticDefaultImports": true,
        "baseUrl": ".",
        "jsx": "react",
        "paths": {
            "@components/*": ["./src/components/*"],
            "@constants/*": ["./src/consts/*"],
            "@images/*": ["./src/images/*"],
            "@pages/*": ["./src/pages/*"],
        }
    },
    "exclude": [
        "Constants",
        "Controllers",
        "DataServices",
        "Models",
        "Pages",
        "Properties",
        "node_modules"
    ],
    "include": [
        "src/**/*.js",
        "src/**/*.jsx",
    ]
}

If I remove the file entirely, everything runs fine, could someone please assist in this issue?

0

There are 0 answers