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

Tern demo can't load acorn modules #5659

Closed
eltoder opened this issue Nov 9, 2018 · 0 comments
Closed

Tern demo can't load acorn modules #5659

eltoder opened this issue Nov 9, 2018 · 0 comments

Comments

@eltoder
Copy link

eltoder commented Nov 9, 2018

Opening https://codemirror.net/demo/tern.html prints errors in js console:

tern.html:17 GET https://ternjs.net/node_modules/acorn/dist/acorn_loose.js net::ERR_ABORTED 404 (Not Found)
tern.html:18 GET https://ternjs.net/node_modules/acorn/dist/walk.js 404 (Not Found)
infer.js:1090 Uncaught TypeError: Cannot read property 'make' of undefined
    at infer.js:1090
    at infer.js:21
    at infer.js:22
(anonymous) @ infer.js:1090
(anonymous) @ infer.js:21
(anonymous) @ infer.js:22
infer.js:869 Uncaught TypeError: def.load is not a function
    at infer.js:869
    at Object.exports.withContext (infer.js:883)
    at new exports.Context (infer.js:851)
    at exports.Server.reset (tern.js:153)
    at new exports.Server (tern.js:130)
    at new CodeMirror.TernServer (tern.js:66)
    at tern.html:114
    at XMLHttpRequest.xhr.onreadystatechange (tern.html:104)

Tern addon on the page doesn't work (no completions or tooltips), presumably as a result of these errors.
Tested in Chrome 70 on Windows.

@marijnh marijnh closed this as completed in b99149d Nov 9, 2018
cone56 pushed a commit to cone56/CodeMirror that referenced this issue Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant