react-filepond with next.js
See original GitHub issueHi,
I have some troubles to use react-filepond with the framework https://github.com/zeit/next.js/
I add in package.json
"react-filepond": "1.2.0",
I also add the webpack conf to be able to import .css directly
but I’m still have a problem
import React, { createElement } from 'react';
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.react-filepond (/Users/parweb/Sites/ww/web/.next/dist/bundles/pages/place/webpack:/external "react-filepond"?b8ed:1:1)
at __webpack_require__ (/Users/parweb/Sites/ww/web/.next/dist/bundles/pages/place/webpack:/webpack/bootstrap 3e856f59bcd105a28e6b?7d67:21:1)
at Object../pages/place/test.js (/Users/parweb/Sites/ww/web/.next/dist/bundles/pages/place/test.js:89:73)
at __webpack_require__ (/Users/parweb/Sites/ww/web/.next/dist/bundles/pages/place/webpack:/webpack/bootstrap 3e856f59bcd105a28e6b?7d67:21:1)
at Object.3 (/Users/parweb/Sites/ww/web/.next/dist/bundles/pages/place/test.js:165:18)
at __webpack_require__ (/Users/parweb/Sites/ww/web/.next/dist/bundles/pages/place/webpack:/webpack/bootstrap 3e856f59bcd105a28e6b?7d67:21:1)
at module.exports../node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css (/Users/parweb/Sites/ww/web/.next/dist/bundles/pages/place/webpack:/webpack/bootstrap 3e856f59bcd105a28e6b?7d67:68:1)```
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Setting up FilePond with React - PQINA
The FilePond React Component functions as a tiny adapter for the FilePond object so it's easier to use with React. Installation instructions for...
Read more >File Upload in react with FilePond - DEV Community
FilePond is javascript library that that can upload almost anything you through at it. It is one of the best and all rounded...
Read more >react-filepond - npm
A handy FilePond adapter component for React. Latest version: 7.1.2, last published: 8 months ago. Start using react-filepond in your ...
Read more >react-filepond examples - CodeSandbox
Learn how to use react-filepond by viewing and forking react-filepond example apps on CodeSandbox.
Read more >Top 5 react-filepond Code Examples - Snyk
To help you get started, we've selected a few react-filepond examples, based on popular ways it is used in public projects. ; from...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
1.2.8-> should now stop running when not in a browser environment.2.0.1-> CSS file now has to be included manually, you’ll need to install@zeit/next-cssfor this.next.config.js
pages/index.js