Norgate-AV / cra-template-crestron-ch5-typescript

A Create React App template tailored for developing Crestron CH5 projects with React
https://www.npmjs.com/package/@norgate-av/cra-template-crestron-ch5-typescript
MIT License
12 stars 3 forks source link

Compiling and loading the template without any changes other than the XPanel Config yeilds a Uncaught ReferenceError: CrComLib is not defined #59

Open gschellhas opened 2 years ago

gschellhas commented 2 years ago

Current Behavior

A project was created with command: npx create-react-app my-app --template @norgate-av/crestron-ch5-typescript

package.json was updated in the crestron section with:

"crestron": {
        "project": {
            "touchscreen": {
                "url": "Enter IP/Hostname of Crestron Touchpanel here...",
                "type": "touchscreen"
            },
            "web": {
                "url": "vc4.imsts.com",
                "type": "web",
                "config": {
                    "host": "vc4.imsts.com",
                    "ipId": "0x03",
                    "roomId": "HTML"
                }
            }
        },

The project was compiled and bundled: npm run build:onestep:web

After loading the bundled Xpanl to a Program and running it in VC4, when opening the Web XPanel in Dev Tools it throws an Uncaught ReferenceError: CrComLib is not defined

Uncaught ReferenceError: CrComLib is not defined
    <anonymous> https://vc4.imsts.com/VirtualControl/Rooms/HTML/XPanel/static/js/main.724bc691.js:2
    <anonymous> https://vc4.imsts.com/VirtualControl/Rooms/HTML/XPanel/static/js/main.724bc691.js:2

Your environment

Latest Version of VC4

  System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
    Memory: 35.18 GB / 63.87 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (104.0.1293.63)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    typescript: ^4.8.2 => 4.8.2
gschellhas commented 2 years ago

For testing purposes, I downloaded the Crestron Shell application and verified that my environment and VC4 instance were working correctly. They had no issues when compiling and running.

jredbart commented 1 year ago

@gschellhas Did you manage to solve the CrComLib issue as I'm also facing the same issue?

gschellhas commented 1 year ago

I was not able to resolve this, but have not tested since then. I am hoping someone figures this out.

From: Jredbart @.> Sent: Saturday, June 24, 2023 12:21 PM To: Norgate-AV-Solutions-Ltd/cra-template-crestron-ch5-typescript @.> Cc: Schellhas, Gary @.>; Mention @.> Subject: Re: [Norgate-AV-Solutions-Ltd/cra-template-crestron-ch5-typescript] Compiling and loading the template without any changes other than the XPanel Config yeilds a Uncaught ReferenceError: CrComLib is not defined (Issue #59)

[https://staticmediafiles.s3.amazonaws.com/media/uploads/logo/CYBIR_100x100_nD0vRcM.png] CybIR couldn't recognize this email as this is the first time you received an email from this sender notifications @ github.com

@gschellhashttps://github.com/gschellhas Did you manage to solve the CrComLib issue as I'm also facing the same issue?

- Reply to this email directly, view it on GitHubhttps://github.com/Norgate-AV-Solutions-Ltd/cra-template-crestron-ch5-typescript/issues/59#issuecomment-1605619333, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKJYLYK5QDY24FYVEZBQM3DXM4HWFANCNFSM57VDBN3Q. You are receiving this because you were mentioned.Message ID: @.**@.>>