Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

problem with require #45

Open
jvanvliet17 opened this issue Apr 29, 2019 · 2 comments
Open

problem with require #45

jvanvliet17 opened this issue Apr 29, 2019 · 2 comments

Comments

@jvanvliet17
Copy link

For some reason, I don't manage to successfully run the following line: var Glossary = require('glossary-panel');

After running the code and looking at the console, I get the following error:
Uncaught ReferenceError: require is not defined

When I instead try to use the whole path, I get the following error:
Not allowed to load local resource: _nameofwholepath_

Does anyone know by any chance why this is caused and how this can be solved.

@afeld
Copy link
Contributor

afeld commented Apr 29, 2019

Yeah, those instructions assume you are compiling your front end assets with Node.js, with Webpack or Browserify or something like that. Would be useful to provide a downloadable version that is frontend-ready.

@jvanvliet17
Copy link
Author

@afeld Thanks for pointing that out. I downloaded Browserify and subsequently via Browserify I made an attemp to creat a bundle.js, however then I get an error that Error: Cannot find module 'terms'
I put all the objects in a json file, however that didn't work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants