GithubHelp home page GithubHelp logo

ERROR in ./src/index.js Module build failed: SyntaxError: Unexpected token (11:2) -- webpack: Failed to compile, error. about graphite HOT 8 CLOSED

graphite-docs avatar graphite-docs commented on August 29, 2024
ERROR in ./src/index.js Module build failed: SyntaxError: Unexpected token (11:2) -- webpack: Failed to compile, error.

from graphite.

Comments (8)

rahulremanan avatar rahulremanan commented on August 29, 2024

Screenshot of the console log:
webpack_failed_to_compile--graphite

from graphite.

FranckKe avatar FranckKe commented on August 29, 2024

Had the same error as well and ran into a few more:

  • Install redux and react-redux
  • Add babel presets in webpack (line 37)
{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/, query: { presets:['es2015','react'] } }
  • Change scrollToBottom function in src/components/messages/SingleConversation.js and src/components/messages/Conversations.js
// scrollToBottom = () => {
scrollToBottom() {

Might do a PR later

from graphite.

polluterofminds avatar polluterofminds commented on August 29, 2024

@FranckKe We absolutely welcome pull requests! As for the issue @rahulremanan ran into, will try to replicate. We've run locally on Mac and Windows, but have not tested Ubuntu.

from graphite.

rahulremanan avatar rahulremanan commented on August 29, 2024

Here is what worked for me: I replaced the official repo with @jehunter5811

-- To fix missing dependencies --
$ sudo npm install --save-dev webpack
$ sudo npm install redux
$ sudo npm install file-loader

-- Install and compile Graphite Editor --
$ git clone https://github.com/jehunter5811/graphite-blockstack/
$ cd graphite
$ git checkout
$ sudo npm install
$ sudo npm run start

from graphite.

FranckKe avatar FranckKe commented on August 29, 2024

By looking at your repo @jehunter5811, it looks like you did not copy your hidden file when you migrated it.

from graphite.

polluterofminds avatar polluterofminds commented on August 29, 2024

@FranckKe That is very very likely. I'll work on correcting this soon. Thanks for spotting that!

from graphite.

polluterofminds avatar polluterofminds commented on August 29, 2024

I just committed the missing file (I think it was only the babel file). I'm going to close this issue, but if new problems arise from this same thread, we can re-open.

from graphite.

FranckKe avatar FranckKe commented on August 29, 2024

Awesome. You might want to add your .gitignore as well to prevent node_modules to be committed.

from graphite.

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.