Coder Social home page Coder Social logo

Out of memory about rxjs-tslint HOT 6 OPEN

reactivex avatar reactivex commented on June 26, 2024 2
Out of memory

from rxjs-tslint.

Comments (6)

tjfryan avatar tjfryan commented on June 26, 2024

I'm running into a similar issue. It seems that the migration script shells out to tslint so increasing the memory limit for the script itself doesn't do anything as tslint's memory limit is what needs to be increased.

from rxjs-tslint.

tjfryan avatar tjfryan commented on June 26, 2024

As a workaround, I've cloned the repo, ran npm run release. Went into the dist folder. Ran npm install, then modified 'rxjs-5-to-6-migrate.js' so that it runs tslint via node --max-old-space-size=8192 "node_modules/.bin/tslint" <rest of args> and will let it run with a larger memory limit. Then run the script via <path_to_cloned_repo>/dist/bin/rxjs-5-to-6-migrate -p tsconfig.json. I'm in the middle of running the script and it's gotten further than it did before.

from rxjs-tslint.

lslocum avatar lslocum commented on June 26, 2024

Thanks @tjfryan I don't see where tslint is being used in the rxjs-5-to-5-migrate.js file. What line are you adding this node memory increase?

from rxjs-tslint.

tjfryan avatar tjfryan commented on June 26, 2024

In the file, there is a line that is constructing a shell command from a string. I've changed it to the following:

var command =
    'node --max-old-space-size=8192 ' +
    '"' + path_1.join(__dirname, 'node_modules', '.bin', 'tslint') + '"' +
    ' -c ' +
    '"' + path_1.join(__dirname, 'rxjs-5-to-6-migrate.json') + '"' +
    ' -p ' +
    '"' + optimist_1.argv.p + '"' +
    ' --fix';

from rxjs-tslint.

Weerasinghe066 avatar Weerasinghe066 commented on June 26, 2024

Is there any solution to this problem.

from rxjs-tslint.

Weerasinghe066 avatar Weerasinghe066 commented on June 26, 2024

@tjfryan can you explain little more clearly please.

from rxjs-tslint.

Related Issues (20)

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.