Gatsby: Gatsby fails build with npm link'ed local npm module

Created on 8 Dec 2018  路  5Comments  路  Source: gatsbyjs/gatsby

Description

Gatsby will throw errors if developing with a locally linked npm module using npm link. Gatsby runs eslint against the local library's source code which, as you can imagine, doesn't follow eslint's best practises.

Steps to reproduce

Create a local npm library, or just clone some ready-made library. Then build it and link it to your global npm dependencies: npm link. Then inside your Gatsby project link it to your dependencies: npm link <library>.

Expected result

Gatsby shouldn't run eslint against the library's code.

Actual result

The opposite of the previous statement.

Environment

My Gatsby is 2.0.22 and I'm using it with TypeScript if that makes any difference.

stale? question or discussion

All 5 comments

I'm using typescript and got a ton of errors from default eslint-loader too. I found the answer in #5493. You need create a blank .eslintrc to disable default eslint-loader.

I'm using typescript and got a ton of errors from default eslint-loader too. I found the answer in #5493. You need create a blank .eslintrc to disable default eslint-loader.

Sure enough, that fixed it. Thank you! Probably this could be classified as a borderline bug though?

Hiya!

This issue has gone quiet. Spooky quiet. 馃懟

We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

Thanks for being a part of the Gatsby community! 馃挭馃挏

Hey again!

It鈥檚 been 30 days since anything happened on this issue, so our friendly neighborhood robot (that鈥檚 me!) is going to close it.

Please keep in mind that I鈥檓 only a robot, so if I鈥檝e closed this issue in error, I鈥檓 HUMAN_EMOTION_SORRY. Please feel free to reopen this issue or create a new one if you need anything else.

Thanks again for being part of the Gatsby community!

I'm using typescript and got a ton of errors from default eslint-loader too. I found the answer in #5493. You need create a blank .eslintrc to disable default eslint-loader.

Thank you this worked for us!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jivings picture Jivings  路  112Comments

cutemachine picture cutemachine  路  112Comments

dlindahl picture dlindahl  路  81Comments

jonathan-chin picture jonathan-chin  路  69Comments

OleksandrSachuk picture OleksandrSachuk  路  75Comments