Repository navigation
New repository structure results in: cannot find module 'parse-server' #336
Description
Activity
can you re-run
npm installand make sure that's not it?I did - I think it might be a mistake on my end regarding how I installed the repo. I forked it, and ran
npm install omairvaiyani/parse-serverwhich cloned this repo's master branch. I see that the master branch is different from the latest tag2.0.7, the latter of which works fine.Looks like the problem has been found.
Could this be re-opened. I need clarification as I'm new to babel - are we supposed to build the repositories using
npm build? Because even on2.0.8, I can't simple userequire('parse-server')without trigger thecannot find moduleerror.Yes you should only need to do
npm install. If that doesn't work, that is a bug.- addedtype:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumedand removed
on Feb 16, 2016 @omairvaiyani
npm buildwon't do anything, to trigger a build you have to runnpm run buildNot clear if there's an issue here and it's getting stale. If there is a problem with the latest version, please open a new issue. Thanks.
I am having this issue now as well. If I run:
npm install parseplatform/parse-server.git#latest --save
everything works fine. If I run:
npm install parseplatform/parse-server.git#2.6.5 --save
I get the same error: Cannot find module 'parse-server'. Changing nothing else about the project
npm install parseplatform/parse-server.git#master --save gives the same errorThe tagged commits are not built in the repo, for using a particular version, just use the npm package
oh, my end goal is to actually build from my own fork... So in that case my best option is to... include all the build files in my fork commit?
it's up to you, but you should have a look at how we release the latest branch, (in resources/npm-git.sh) if you need something similar.
@TravisHeaver like flovilmart mentioned only what's on npm or in latest is pre-built. For everything else you would have to build up the necessary files yourself. You can checkout npm-git.sh and our package.json for more details.
Any update here?
It’s. 2 year old issue that is closed, not sure what update you’re expecting. Please open a new issue
Happened once I updated to the latest build: