Coder Social home page Coder Social logo

ent-stack-overflow-clone's People

Contributors

mrtom avatar

Watchers

 avatar  avatar

ent-stack-overflow-clone's Issues

Problems after upgrading

Hey Ola.

I had an email that you'd closed out lolopinto/ent#424 and that gave me a nudge to start playing with my ent-starter project this evening after a month or so away.

I noticed that you've moved the dependencies from @lolopinto/ent into @snowtop/ent. I've gone ahead and updated my local package.json (and the Docker files) but when I try and run npm run codegen I get the following error:

~/Code/js/ent-starter(main*) » npm run codegen                                                                                                                                                                                                               1 ↵ tom@Toms-MBP-3

> [email protected] codegen /Users/tom/Code/js/ent-starter
> docker-compose -f docker-compose.dev.yml run --rm app tsent codegen

Creating ent-starter_app_run ... done
Error: internal/modules/cjs/loader.js:888
  throw err;
  ^

Error: Cannot find module './read_schema.js'
Require stack:
- /app/node_modules/@lolopinto/ent/scripts/imaginaryUncacheableRequireResolveScript
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.resolve (internal/modules/cjs/helpers.js:94:19)
    at requireResolveNonCached (/usr/lib/node_modules/ts-node/dist/bin.js:257:16)
    at getProjectSearchDir (/usr/lib/node_modules/ts-node/dist/bin.js:227:35)
    at Object.main (/usr/lib/node_modules/ts-node/dist/bin.js:131:27)
    at Object.<anonymous> (/usr/lib/node_modules/ts-node/dist/bin-script.js:5:7)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/node_modules/@lolopinto/ent/scripts/imaginaryUncacheableRequireResolveScript'
  ]
}
: exit status 1
Usage:
  tsent codegen [flags]

Flags:
  -h, --help          help for codegen
  -s, --step string   limit to only run a particular step e.g. db, graphql, codegen

internal/modules/cjs/loader.js:888
  throw err;
  ^

Error: Cannot find module './read_schema.js'
Require stack:
- /app/node_modules/@lolopinto/ent/scripts/imaginaryUncacheableRequireResolveScript
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.resolve (internal/modules/cjs/helpers.js:94:19)
    at requireResolveNonCached (/usr/lib/node_modules/ts-node/dist/bin.js:257:16)
    at getProjectSearchDir (/usr/lib/node_modules/ts-node/dist/bin.js:227:35)
    at Object.main (/usr/lib/node_modules/ts-node/dist/bin.js:131:27)
    at Object.<anonymous> (/usr/lib/node_modules/ts-node/dist/bin-script.js:5:7)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/node_modules/@lolopinto/ent/scripts/imaginaryUncacheableRequireResolveScript'
  ]
}
: exit status 1
ERROR: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] codegen: `docker-compose -f docker-compose.dev.yml run --rm app tsent codegen`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] codegen script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/tom/.npm/_logs/2021-08-08T19_35_21_541Z-debug.log
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~/Code/js/ent-starter(main*) »

I presume npm is picking up the old version of tsent, from before the move. Hence it's looking for things in app/node_modules/@lolopinto/ent which no longer exists.

I've been able to unblock myself by installing the CLI tools locally (as per the docs) and running tsent directly, but it would be good to understand why this isn't working via npm.

Any ideas? Thanks :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.