Giter Club home page Giter Club logo

Comments (6)

danfrenette avatar danfrenette commented on July 23, 2024 6

@bratnick Okay I just figured it out (and by "figured it out" I mean I noticed the "Debugging" section of the README 🤦 )

You have to remove the cache that parcel uses after you follow the instructions in the other issue. So in full order, that's:

  1. Remove the line "plugins": ["@babel/plugin-proposal-class-properties"] from your .babelrc file
  2. Run rm -rf .cache/ dist/ in the root directory of the project. I also removed the node modules at this point, but that might not be necessary (rm -rf node_modules).
  3. Run yarn to get all your packages back.
  4. Run npm run dev and hopefully your project should be back online. You can confirm the issue was fixed if your linter isn't complaining about the state var being set in the src/Details.js file.

I hope this helps!

from complete-intro-to-react-v5.

danfrenette avatar danfrenette commented on July 23, 2024

I'm getting this error as well. I would love some assistance as this course has been great so far!
Terminal_—_tmux_—_85×39_and_🚨_Build_Error

Here's a link to my repo, everything's been done on the master branch so far: https://github.com/danfrenette/frontend-masters-beginner-react

Edit: I was able to reproduce this in the course repo (this repo) as well.

  • Clone the app
  • git reset --hard a69f25dfed3172d0f51c718ae0b2beee4a6a6906 (this commit)
  • yarn
  • npm run dev

However, if you repeat those steps for the commit directly before the one I linked, the server builds. I've found some information on this in threads like this one, but every solution involves a change to the given project's webpack config, but obviously that doesn't apply here. Is there a similar fix for parcel?

from complete-intro-to-react-v5.

danfrenette avatar danfrenette commented on July 23, 2024

Actually, it looks like this is a duplicate of #93

@btholt it'd be super appreciated to get your input on these if you can make the time!

from complete-intro-to-react-v5.

bratnick avatar bratnick commented on July 23, 2024

@danfrenette , did the solution for #93 work for you?
Its not working for me.
@btholt , it'd be appreciated if you could help us out here !

from complete-intro-to-react-v5.

laniehei avatar laniehei commented on July 23, 2024

It looks like this issue has been solved! Closing this. Please reopen if there are further issues.

from complete-intro-to-react-v5.

aashiqahmed98 avatar aashiqahmed98 commented on July 23, 2024

@bratnick Okay I just figured it out (and by "figured it out" I mean I noticed the "Debugging" section of the README 🤦 )

You have to remove the cache that parcel uses after you follow the instructions in the other issue. So in full order, that's:

  1. Remove the line "plugins": ["@babel/plugin-proposal-class-properties"] from your .babelrc file
  2. Run rm -rf .cache/ dist/ in the root directory of the project. I also removed the node modules at this point, but that might not be necessary (rm -rf node_modules).
  3. Run yarn to get all your packages back.
  4. Run npm run dev and hopefully your project should be back online. You can confirm the issue was fixed if your linter isn't complaining about the state var being set in the src/Details.js file.

I hope this helps!

But for rm -rf .cache/ dist/,it says,
Invalid switch - "dist".

from complete-intro-to-react-v5.

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.