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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 55 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive