Skip to content

New repository structure results in: cannot find module 'parse-server' #336

Description

@omairvaiyani

Happened once I updated to the latest build:

Error: Cannot find module 'parse-server'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
var ParseServer = require('parse-server').ParseServer; // not changed this line

Activity

  1. gfosco commented on Feb 10, 2016

    @gfosco
    Contributor

    can you re-run npm install and make sure that's not it?

  2. omairvaiyani commented on Feb 10, 2016

    @omairvaiyani
    ContributorAuthor

    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-server which cloned this repo's master branch. I see that the master branch is different from the latest tag 2.0.7, the latter of which works fine.

  3. drew-gross commented on Feb 11, 2016

    @drew-gross
    Contributor

    Looks like the problem has been found.

  4. omairvaiyani commented on Feb 15, 2016

    @omairvaiyani
    ContributorAuthor

    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 on 2.0.8, I can't simple use require('parse-server') without trigger the cannot find module error.

  5. drew-gross commented on Feb 16, 2016

    @drew-gross
    Contributor

    Yes you should only need to do npm install. If that doesn't work, that is a bug.

  6. added
    type:bugImpaired feature or lacking behavior that is likely assumed
    and removed on Feb 16, 2016
  7. flovilmart commented on Feb 23, 2016

    @flovilmart
    Contributor

    @omairvaiyani npm build won't do anything, to trigger a build you have to run npm run build 

  8. gfosco commented on Mar 2, 2016

    @gfosco
    Contributor

    Not 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.

  9. TravisHeaver commented on Nov 13, 2017

    @TravisHeaver

    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 error

  10. flovilmart commented on Nov 13, 2017

    @flovilmart
    Contributor

    The tagged commits are not built in the repo, for using a particular version, just use the npm package

  11. TravisHeaver commented on Nov 13, 2017

    @TravisHeaver

    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?

  12. flovilmart commented on Nov 13, 2017

    @flovilmart
    Contributor

    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.

  13. montymxb commented on Nov 14, 2017

    @montymxb
    Contributor

    @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.

  14. greggmojica commented on Jun 25, 2018

    @greggmojica

    Any update here?

  15. flovilmart commented on Jun 25, 2018

    @flovilmart
    Contributor

    It’s. 2 year old issue that is closed, not sure what update you’re expecting. Please open a new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions