Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Aug 26, 2022 · 3 comments
Labels

Comments

@gschellhas
Copy link

gschellhas commented Aug 26, 2022

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 gschellhas changed the title Compiling and loading the template without any changes other than the XPanel Config yealds a Uncaught ReferenceError: CrComLib is not defined Compiling and loading the template without any changes other than the XPanel Config yeilds a Uncaught ReferenceError: CrComLib is not defined Aug 26, 2022
@gschellhas
Copy link
Author

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.

@stale stale bot added the stale label Oct 25, 2022
@jredbart
Copy link

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

@stale stale bot removed the stale label Jun 24, 2023
@gschellhas
Copy link
Author

gschellhas commented Jun 26, 2023 via email

@stale stale bot added the stale label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants