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

'npm run serve' doesn't work, and looks like data is not persisted #46

Open
goodaleb-cloudbees opened this issue May 11, 2019 · 2 comments

Comments

@goodaleb-cloudbees
Copy link

on Ubuntu 16.04, after successfully running npm run build, when I run npm run serve, I get this:

Unable to read file: /users/home/<<myUsername>>/PersonalProjects/JournalBook/src/node_modules/idb/lib/idb.mjs

ReferenceError: IDBIndex is not defined
method: JkW7
at: /users/home/<<myUsername>>/PersonalProjects/JournalBook/src/node_modules/idb/lib/idb.mjs:87:0

It looks like is looking for node_modules inside src directory, but is actually in root of project.

@goodaleb-cloudbees
Copy link
Author

goodaleb-cloudbees commented May 11, 2019

By the way, npm run dev and npm start works just fine, so I guess this is no big deal, but since the command is mentioned in your docs, maybe the docs should at least be modified?

@goodaleb-cloudbees
Copy link
Author

Well, actually....npm start launches the site, but if I shut it down and run npm start again, the entries are gone!. So, data is not retained or written to the filesystem anywhere for persistence? I don't know much about IDB, but why can't the data be written out between launches?
So, maybe I must further deploy this somewhere in a different configuration? Some help in the documentation would be useful regarding this. Obviously, if data cannot persist, this is useless to me.

@goodaleb-cloudbees goodaleb-cloudbees changed the title npm run serve doesn't work npm run serve doesn't work, and looks like data is not persisted May 11, 2019
@goodaleb-cloudbees goodaleb-cloudbees changed the title npm run serve doesn't work, and looks like data is not persisted 'npm run serve' doesn't work, and looks like data is not persisted May 11, 2019
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