-
-
Notifications
You must be signed in to change notification settings - Fork 430
Closed
Description
Heya, I'm trying to bundle some .svg
, but get an error during build with rollup
. Other plugins I'm using are rollup-plugin-typescript2
and rollup-plugin-postcss
. Using rollup v0.58.2
. The build works until I add svgr
. Is this plugin incompatible with TypeScript?
[!] (rpt2 plugin) Error: Unknown object type "asyncfunction"
src/index.ts
Error: Unknown object type "asyncfunction"
at Object._object (/Users/.../node_modules/rollup-plugin-typescript2/node_modules/object-hash/index.js:218:17)
at Object._function (/Users/.../node_modules/rollup-plugin-typescript2/node_modules/object-hash/index.js:319:14)
at Object.dispatch (/Users/.../node_modules/rollup-plugin-typescript2/node_modules/object-hash/index.js:185:30)
at /Users/.../node_modules/rollup-plugin-typescript2/node_modules/object-hash/index.js:246:18
at Array.forEach (<anonymous>)
at Object._object (/Users/.../node_modules/rollup-plugin-typescript2/node_modules/object-hash/index.js:242:21)
at Object.dispatch (/Users/.../node_modules/rollup-plugin-typescript2/node_modules/object-hash/index.js:185:30)
at /Users/.../node_modules/rollup-plugin-typescript2/node_modules/object-hash/index.js:260:23
at Array.forEach (<anonymous>)
at Object._array (/Users/.../node_modules/rollup-plugin-typescript2/node_modules/object-hash/index.js:259:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! MODULE_NAME@1.0.0 build: `rm -rf dist && rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the MODULE_NAME@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.../.npm/_logs/2018-06-19T22_15_44_193Z-debug.log
Metadata
Metadata
Assignees
Labels
No labels