Question about supported react version
johnrails opened this issue · 1 comments
johnrails commented
I'm sorry if this is the wrong platform for this, but does this package work with react 15.4? I'm trying to use a package that uses react-textarea-autocomplete as a dev dependency, and when i try to use the package my app breaks with this exception
/Users/j0d01w8/projects/wap-dashboard-ui/node_modules/@webscopeio/react-textarea-autocomplete/style.css:1
(function (exports, require, module, __filename, __dirname) { .rta {
^
SyntaxError: Unexpected token .
at new Script (vm.js:51:7)
at createScript (vm.js:136:10)
at Object.runInThisContext (vm.js:197:10)
at Module._compile (internal/modules/cjs/loader.js:618:28)
at Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Object.newLoader [as .js] (/Users/j0d01w8/projects/wap-dashboard-ui/node_modules/pirates/lib/index.js:88:7)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Module.require (internal/modules/cjs/loader.js:598:17)
I'm guessing it's probably an issue with my webpack config, but just wanted to make sure it's worth investigating.
jukben commented
Oh, that's interesting. You said it's devDependency
? Which package is that?
Anyway Yep, I believe it's issue with Webpack, you need to correctly transform css as well.