question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript sites break with gatsby@2.9.9

See original GitHub issue

Description

Something changed between 2.9.8 and 2.9.9 that breaks Gatsby sites with TypeScript. Problem doesn’t seem to have to do with gatsby-plugin-typescript, but more to do with Gatsby looking for an index.js. But please take that observation with a grain of salt.

Steps to reproduce

Clone this minimal repo: https://github.com/ryanditjia/gatsby2.9.9-issue.git

Run npm start

Expected result

Develop should run fine.

Actual result

Getting this error:

project_root/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

RangeError: Maximum call stack size exceeded
    at Array.values (<anonymous>)
    at Object.console.error
... and so on

Environment

System: OS: macOS High Sierra 10.13.6 CPU: (4) x64 Intel® Core™ i5-2400S CPU @ 2.50GHz Shell: 5.3 - /bin/zsh Binaries: Node: 12.4.0 - /usr/local/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.7.0 - /usr/local/bin/npm Languages: Python: 2.7.16 - /usr/local/bin/python Browsers: Chrome: 74.0.3729.169 Firefox: 60.0.2 Safari: 12.1.1 npmPackages: gatsby: ^2.9.9 => 2.9.9 gatsby-plugin-typescript: ^2.0.15 => 2.0.15

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
IngoValentecommented, Jun 19, 2019

Same here, reverting back to 2.9.8 works without problems.

1reaction
dennisroethigcommented, Aug 26, 2019

Hm, I’m still getting this on gatsby serve 😕

> gatsby serve

/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

RangeError: Maximum call stack size exceeded
    at Array Iterator.next (<anonymous>)
    at Object.console.error (/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/gatsby/node_modules/gatsby-cli/lib/reporter/index.js:265:48)
    at warningWithoutStack (/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/react-reconciler/cjs/react-reconciler.development.js:100:32)
    at warnAboutUpdateOnUnmounted (/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/react-reconciler/cjs/react-reconciler.development.js:10458:5)
    at scheduleWork (/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/react-reconciler/cjs/react-reconciler.development.js:11868:11)
    at Object.enqueueSetState (/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/react-reconciler/cjs/react-reconciler.development.js:3152:5)
    at GatsbyReporter.Component.setState (/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/react/cjs/react.development.js:325:16)
    at GatsbyReporter._addMessage (/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/gatsby/node_modules/gatsby-cli/lib/reporter/reporters/ink/reporter.js:140:10)
    at Object.console.error (/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/gatsby/node_modules/gatsby-cli/lib/reporter/index.js:265:39)
    at warningWithoutStack (/Users/dennisroethig/Projects/gatsby-per-locale/node_modules/react-reconciler/cjs/react-reconciler.development.js:100:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! gatsby-starter-default@0.1.0 serve: `gatsby serve`
npm ERR! Exit status 7
npm ERR! 
npm ERR! Failed at the gatsby-starter-default@0.1.0 serve 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:

After looking through the internet I ended up updating all the things without success. Any info I can provide that would help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript and Gatsby
TypeScript is a JavaScript superset which extends the language to include type definitions allowing codebases to be statically checked for soundness.
Read more >
Building a Static Gatsby-based Website with TypeScript
js. The configuration is broken down into two main sections: siteMetadata and a list of plugins , some of which have custom options ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found