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

Cannot find module: lockit-template-blank #50

Open
dennishall1 opened this issue Feb 23, 2016 · 1 comment
Open

Cannot find module: lockit-template-blank #50

dennishall1 opened this issue Feb 23, 2016 · 1 comment

Comments

@dennishall1
Copy link

It's really really easy to get this error, including if you just make a new express app using defaults and try the quick-start with lockit as per the instructions in lockit's readme:

npm start

lockit no db config found. Using SQLite.
lockit no email config found. Check your database for tokens.

/signup

..fill in the form and submit it..

->

Unhandled rejection Error: Cannot find module 'lockit-template-blank'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at new module.exports (/Users/dhall/projects/myapp/node_modules/lockit/node_modules/lockit-signup/node_modules/lockit-sendmail/index.js:16:19)
@dennishall1
Copy link
Author

I went into node_modules/lockit/node_modules/lockit-signup .. and changed its package.json .. I just put all the devDependencies into the regular dependencies, ran npm i, then re-ran the app, and this error went away. Probably lockit-template-blank should be a regular dependency for that module, not a devDependency. .. considering that the instructions in Lockit's readme fail otherwise.

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