Giter Site home page Giter Site logo

Comments (9)

qwoz avatar qwoz commented on May 28, 2024 4

Looks to be related to this issue -- the solution for me was similar to the above-suggested .flowconfig addition:

[ignore]
.*/node_modules/eslint-plugin-jsx-a11y

from js-stack-from-scratch.

markandersonus avatar markandersonus commented on May 28, 2024 1

changing dog.js back to...

module.exports = Dog

seems to fix it. is it a problem with the part two under: "Add Flow annotations to src/dog.js like so:"

from js-stack-from-scratch.

Laurian avatar Laurian commented on May 28, 2024 1

I'm using this, found it once somewhere online after a long night of things not working:

[ignore]
<PROJECT_ROOT>/node_modules/.*

from js-stack-from-scratch.

markandersonus avatar markandersonus commented on May 28, 2024

added to my .flowconfig

[ignore]
./node_modules/eslint-plugin-jsx-a11y/

now just getting:

5: const toby = new Dog('Toby')
^^^^^^^^^^^^^^^ constructor call. Constructor cannot be called on
5: const toby = new Dog('Toby')
^^^ CommonJS exports of "./dog"

from js-stack-from-scratch.

slifty avatar slifty commented on May 28, 2024

Just wanted to note that I had the same set of issues as @markandersonus although his proposed fixes didn't solve it in my case. For now I'm just going to remove flow from the test script.

from js-stack-from-scratch.

maboa avatar maboa commented on May 28, 2024

I'm seeing the same issues as @slifty - similarly the changes @markandersonus suggests do not fix for me.

from js-stack-from-scratch.

artemkovalyov avatar artemkovalyov commented on May 28, 2024

My ignore looks like this and works well for me:
[ignore] .*/node_modules/eslint-plugin-jsx-a11y/.*

from js-stack-from-scratch.

0xhjohnson avatar 0xhjohnson commented on May 28, 2024

Same issue here @qwoz ignore works perfectly in my case

from js-stack-from-scratch.

 avatar commented on May 28, 2024

Had same issue, @qwoz's solution worked

from js-stack-from-scratch.

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.