Giter Club home page Giter Club logo

Comments (15)

iashraful avatar iashraful commented on May 28, 2024 1

I am also facing the same problem. Have any idea?

from react-smart-data-table.

iashraful avatar iashraful commented on May 28, 2024 1

Absolutely. I have imported React like,
import React, {Component} from "react";

from react-smart-data-table.

dylancristy avatar dylancristy commented on May 28, 2024 1

+1 I am having the same issue too. Using create-react-app which definitely uses webpack and I presume uses babel behind the scenes.

Same error, unexpected token at (114:6), same code snippet shown, same "you may need an appropriate loader" message.

from react-smart-data-table.

binyata avatar binyata commented on May 28, 2024

I don't know how responsive this github user is, but we may end up having to fork this to a different repo to resolve the bug.

from react-smart-data-table.

joaocarmo avatar joaocarmo commented on May 28, 2024

So long as you can parse ES6, this should be fine. I need more information in order to debug the question. Do you use webpack? Are you using babel? It should suffice.

from react-smart-data-table.

binyata avatar binyata commented on May 28, 2024

for me I am using the create-react-app command to build the sample build, then I ran npm to install your package. I simply imported the smartdatatable package, and ran into the error message I pasted up above.

from react-smart-data-table.

iashraful avatar iashraful commented on May 28, 2024

Same for me. I am also using create-react-app and the error was exactly same as issue description.

from react-smart-data-table.

joaocarmo avatar joaocarmo commented on May 28, 2024

Are you importing React as well? React is a peer dependency and needs to be independently imported.

from react-smart-data-table.

Temigo avatar Temigo commented on May 28, 2024

I have exactly the same issue and can't find out what is wrong. I am using webpack and babel.

from react-smart-data-table.

jackson-sandland avatar jackson-sandland commented on May 28, 2024

Bueller...

from react-smart-data-table.

moritzwachter avatar moritzwachter commented on May 28, 2024

I'm have almost 0 experience with webpack so I can't help a lot. But what I find worth mentioning:
When you start with create-react-app and simply copy this repo to your source folder, everything works fine!
I guess the webpack config just excludes to whole node_modules folder for the babel-loader or something? 🤔

So let's all npm run eject and find a solution ;-)

from react-smart-data-table.

joaocarmo avatar joaocarmo commented on May 28, 2024

Please, check my answer to issue #6.

from react-smart-data-table.

emrbzr avatar emrbzr commented on May 28, 2024

I have the same problem. All other plugins work without a problem except this one, and i dont use webpack

from react-smart-data-table.

joaocarmo avatar joaocarmo commented on May 28, 2024

@emrbzr which module bundler do you use?

from react-smart-data-table.

joaocarmo avatar joaocarmo commented on May 28, 2024

I will be closing this now as it seems no answer is coming.

from react-smart-data-table.

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.