# Demo SPA project failing to run

**URL:** <https://community.bloomreach.com/t/demo-spa-project-failing-to-run/2361>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [February 1, 2021, 6:46pm UTC](https://community.bloomreach.com/t/demo-spa-project-failing-to-run/2361 "2021-02-01T18:46:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gurvinder](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gurvinder](https://community.bloomreach.com/u/gurvinder)\
**Post date:** [February 1, 2021, 6:46pm UTC](https://community.bloomreach.com/t/demo-spa-project-failing-to-run/2361/1 "2021-02-01T18:46:24Z")

</div>

Hi All  
I am trying to run the demo SPA project which I downloaded from the GitHub repository

> **[Releases · bloomreach/brxm](https://github.com/bloomreach/brxm/releases)**
>
> Apache-licensed community edition of Bloomreach Experience CMS - bloomreach/brxm

the latest version 14.4.0  
I followed all the steps and did  
$ cd brxm/spa-sdk/examples/react-csr  
$ npm install  
$ npm run dev

But when I do try to run it breaks giving the following error.  
Please let me know if I am missing anything.

npm run dev

> @bloomreach/example-react-csr@14.4.0 dev /Users/gurvinder/Downloads/brxm-brxm-14.4.0/spa-sdk/examples/react-csr  
> SKIP\_PREFLIGHT\_CHECK=true react-scripts start

/Users/gurvinder/Downloads/brxm-brxm-14.4.0/spa-sdk/examples/react-csr/node\_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239  
**appTsConfig.compilerOptions[option] = value;**  
^

**TypeError: Cannot assign to read only property ‘jsx’ of object ‘#’**  
at verifyTypeScriptSetup (/Users/gurvinder/Downloads/brxm-brxm-14.4.0/spa-sdk/examples/react-csr/node\_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239:43)  
at Object. (/Users/gurvinder/Downloads/brxm-brxm-14.4.0/spa-sdk/examples/react-csr/node\_modules/react-scripts/scripts/start.js:31:1)  
at Module.\_compile (internal/modules/cjs/loader.js:955:30)  
at Object.Module.\_extensions…js (internal/modules/cjs/loader.js:991:10)  
at Module.load (internal/modules/cjs/loader.js:811:32)  
at Function.Module.\_load (internal/modules/cjs/loader.js:723:14)  
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)  
at internal/main/run\_main\_module.js:17:11  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! @bloomreach/example-react-csr@14.4.0 dev: `SKIP_PREFLIGHT_CHECK=true react-scripts start`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the @bloomreach/example-react-csr@14.4.0 dev script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:  
npm ERR! /Users/gurvinder/.npm/\_logs/2021-02-01T16\_31\_13\_043Z-debug.log

---

<div class="post-metadata">

**Author:** ![dokmic](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/dokmic/32/451_2.png) [@dokmic](https://community.bloomreach.com/u/dokmic)\
**Post date:** [February 3, 2021, 9:00am UTC](https://community.bloomreach.com/t/demo-spa-project-failing-to-run/2361/2 "2021-02-03T09:00:27Z")

</div>

Hey @gurvinder,

This is caused by [this](https://github.com/facebook/create-react-app/issues/10110) issue in the create-react-app.

There are two ways on how we can work this around.

1. You can lock the TypeScript version to 4.0.\*:  
`npm install typescript@~4.0`
2. Or, if you would like to use the latest TypeScript version, you can do one of the following:
  - Add `DISABLE_NEW_JSX_TRANSFORM=true` to your `.env`.
  - `DISABLE_NEW_JSX_TRANSFORM=true npm run dev`.

Let us know if that solves your problem.

---

<div class="post-metadata">

**Author:** ![niels.vankampenhout](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/niels.vankampenhout/32/450_2.png) [@niels.vankampenhout](https://community.bloomreach.com/u/niels.vankampenhout)\
**Post date:** [February 3, 2021, 9:03pm UTC](https://community.bloomreach.com/t/demo-spa-project-failing-to-run/2361/3 "2021-02-03T21:03:59Z")

</div>

I replicated the error reported by @gurvinder and tried both workarounds suggested by @dokmic.  
1 (npm install typescript@~4.0) worked for me.  
2 (DISABLE\_NEW\_JSX\_TRANSFORM=true) did not, I got a TypeScript compilation error when loading the app in the browser.

---

<div class="post-metadata">

**Author:** ![niels.vankampenhout](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/niels.vankampenhout/32/450_2.png) [@niels.vankampenhout](https://community.bloomreach.com/u/niels.vankampenhout)\
**Post date:** [February 3, 2021, 9:12pm UTC](https://community.bloomreach.com/t/demo-spa-project-failing-to-run/2361/4 "2021-02-03T21:12:52Z")

</div>

I added a warning block about this issue and the suggested workaround to [https://documentation.bloomreach.com/14/library/concepts/spa-integration/demo-projects.html](https://documentation.bloomreach.com/14/library/concepts/spa-integration/demo-projects.html) .
