Comments (15)
I am also facing the same problem. Have any idea?
from react-smart-data-table.
Absolutely. I have imported React like,
import React, {Component} from "react";
from react-smart-data-table.
+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.
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.
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.
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.
Same for me. I am also using create-react-app
and the error was exactly same as issue description.
from react-smart-data-table.
Are you importing React as well? React is a peer dependency and needs to be independently imported.
from react-smart-data-table.
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.
Bueller...
from react-smart-data-table.
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.
Please, check my answer to issue #6.
from react-smart-data-table.
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.
@emrbzr which module bundler do you use?
from react-smart-data-table.
I will be closing this now as it seems no answer is coming.
from react-smart-data-table.
Related Issues (20)
- Failed to compile HOT 6
- How to view 'No records available' as a row if data object is empty ? HOT 1
- Something went wrong ! SyntaxError: unterminated character class HOT 1
- Pagination customization/localization HOT 4
- Column ordering HOT 2
- Can't deploy to production with yarn build HOT 1
- Custom headers not working HOT 4
- Not fully compatible with Semantic UI's Pagination component HOT 2
- Header columns trimming Integers from names HOT 1
- Not displaying all the fields HOT 16
- Not paginating properly HOT 1
- Displaying duplicate columns when using 'header' props HOT 2
- Hide the paginator if the results per page were less than the perPage prop HOT 2
- Enhancement: Columns selector HOT 2
- "ReferenceError: self is not defined" when using blitz HOT 3
- Adding row double click HOT 1
- Pagination and activePage prop HOT 4
- Individual Column alignment HOT 3
- save the column width, sorts and filters HOT 1
- Give styles to specific row
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-smart-data-table.