LearnNewsExamplesServices
Frontmatter
id137
titleMissing files, broken links, fails to load
stateClosed
labels
question
assignees[]
createdAtNov 29, 2019, 5:19 PM
updatedAtDec 2, 2019, 11:24 PM
githubUrlhttps://github.com/neomjs/neo/issues/137
authordiplopito
commentsCount3
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 2, 2019, 11:24 PM

Missing files, broken links, fails to load

diplopito
diplopito commented on Nov 29, 2019, 5:19 PM

Hi Tobias,

I am trying to get started with Neo. I have found the following issues:

Broken links or non existing files:

  • localhost/neo/examples/helix
  • localhost/neo/dist/development/examples
  • localhost/neo/dist/production/examples
  • Under dist there are only /docs folders
  • When trying to view /dist/production/docs or /dist/development/docs the file main.js is missing in both
  • After setting the flag in Chrome, when trying to access any example, all the pages are blank. Console error is:

Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.

Suggestion:

  • In README.md, the server requirements should go first: mjs should be added as js type in the server prior to accessing the examples, otherwise they won't run.
  • Create a web site where the examples can be seen/tested

Unfortunately, with all these issues, I haven't been able to see any component.

diplopito added the bug label on Nov 29, 2019, 5:19 PM
tobiu
tobiu Nov 29, 2019, 5:31 PM

Hi and welcome to the neo.mjs community diplopito,

there were indeed wrong links inside the examples readme for the helix. pushed a fix.

the easiest way to get a configured webserver is:

npm run server-start

the script will throw 2 errors which you can ignore for now, but should open a new chrome tab right away.

to get the content inside the dist folders, you need to run the following scripts:

npm run build-development
npm run build-production

the examples outside the dist folder (e.g. localhost/neo/examples/component/helix) are way more impressive, since you get the real JS modules inside the browser, like:

neo_worker_setup

online examples will follow in a couple of days, i am working on the github pages for the real world demo app first (should be completed today) ;)

tobiu
tobiu Nov 29, 2019, 7:50 PM
tobiu removed the bug label on Dec 1, 2019, 8:40 PM
tobiu added the question label on Dec 1, 2019, 8:40 PM
diplopito
diplopito Dec 2, 2019, 11:24 PM

Hi Tobias,

I cloned it again, followed the steps and it's running very nice. The new examples site looks great, I will start soon working on a couple of projects to learn Neo, very promising indeed. Thanks and congratulations!

diplopito closed this issue on Dec 2, 2019, 11:24 PM