ShinyChang/React-Text-Truncate

Unknown plugin 'add-module-exports'

francisngo opened this issue · 4 comments

Hello, I am getting an error when trying to use this.

ERROR in ./~/react-text-truncate/lib/index.js
Module build failed: ReferenceError: Unknown plugin "add-module-exports" specified in "/Users/rr239696/Projects/Personal/parkflix/node_modules/react-text-truncate/.babelrc" at 0, attempted to resolve relative to "/Users/
rr239696/Projects/Personal/parkflix/node_modules/react-text-truncate"
    at /Users/rr239696/Projects/Personal/parkflix/node_modules/babel-core/lib/transformation/file/options/option-manager.js:176:17
    at Array.map (native)
    at Function.normalisePlugins (/Users/rr239696/Projects/Personal/parkflix/node_modules/babel-core/lib/transformation/file/options/option-manager.js:154:20)
    at OptionManager.mergeOptions (/Users/rr239696/Projects/Personal/parkflix/node_modules/babel-core/lib/transformation/file/options/option-manager.js:229:36)
    at OptionManager.init (/Users/rr239696/Projects/Personal/parkflix/node_modules/babel-core/lib/transformation/file/options/option-manager.js:374:12)
    at File.initOptions (/Users/rr239696/Projects/Personal/parkflix/node_modules/babel-core/lib/transformation/file/index.js:216:65)
    at new File (/Users/rr239696/Projects/Personal/parkflix/node_modules/babel-core/lib/transformation/file/index.js:139:24)
    at Pipeline.transform (/Users/rr239696/Projects/Personal/parkflix/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Users/rr239696/Projects/Personal/parkflix/node_modules/babel-loader/lib/index.js:38:20)
    at Object.module.exports (/Users/rr239696/Projects/Personal/parkflix/node_modules/babel-loader/lib/index.js:133:12)
 @ ./app/components/ParkCard.jsx 8:19-49

I have the same.

Hi @maxceem and @francisngo ,

Sorry for late reply. I will remove it from dependency in next version.

Sorry, I can not reproduced this issue anymore :(

I tested Node v6 and v8. I have global installed webpack v1 and babel v6.

Can you give me more environment details? Then I can fix this issue.

I closed this issue because there is no new reply.