Domo.JS is not getting created via domo init
Domo.js is not getting deployed when I create a new project using domo init. I know there are workarounds to create this using
npm install --save ryuu.js
But I am wondering if this is a symptom for some systemic problem which is also causing my projects to error out with message such as these:
Best Answer
-
Closing the loop on this one. I realize that the new method of initiating an app instance does not install domo.js on the project. But it links the library through CDN and the info can be found in the script tag.
I ended up manually copying the domo.js file from another project to resolve that error. But at some
later point I removed the manual files and ryuu package through CDN was sufficient to run the code. I cant tell you why it didn't work earlier. But hey the code eventually worked.
0
Answers
-
GET https://localhost:3000/domo.js net::ERR_ABORTED 404 (not found)
This error indicates that the application is trying to load domo.js from localhost:3000, but the file does not exist, resulting in a 404 error. This is a key issue: domo.js is missing or not correctly deployed to your local server.
Refused to execute script from 'http://localhost:3000/domo.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
This indicates that the server is returning an HTML response when trying to load domo.js. This likely means the server is serving a fallback HTML page (often a 404 page) instead of the actual JavaScript file. Because the MIME type is text/html instead of application/javascript, the browser refuses to execute the file.
Unexpected end of JSON input at JSON.parse at index.js:6:22. This error is happening because the response returned from trying to fetch domo.js is not valid JSON (it's likely an HTML 404 page), and when the code tries to parse it as JSON, it throws an error because it's incomplete or incorrectly formatted.
Check if domo.js is generated and deployed correctly. Re-run: domo init
You could try updating the Domo CLI, manually install ryuu.js which is often used in conjunction with domo.js.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
Thanks for your feedback @ArborRose.
My issue is that domo init is not generating/deploying domo.js.
I even tried to install it manually and it says 'up to date, audited 2 packages in 940ms. But when I check the folder, there's nothing.
0 -
Closing the loop on this one. I realize that the new method of initiating an app instance does not install domo.js on the project. But it links the library through CDN and the info can be found in the script tag.
I ended up manually copying the domo.js file from another project to resolve that error. But at some
later point I removed the manual files and ryuu package through CDN was sufficient to run the code. I cant tell you why it didn't work earlier. But hey the code eventually worked.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive