Closed erasmuswill closed 3 years ago
What version of Microbundle is this happening with?
The latest version at the time. This issue was holding up production on a project with hectic deadlines so the use of components was abandoned in favour of copy-pasta between sections.
Getting the same here for https://github.com/muuvmuuv/gdpr-cookie-consent-banner/tree/next
> microbundle --name CookieConsent
node-resolve: setting options.module is deprecated, please override options.mainFields instead
node-resolve: setting options.jsnext is deprecated, please override options.mainFields instead
node-resolve: setting options.module is deprecated, please override options.mainFields instead
node-resolve: setting options.jsnext is deprecated, please override options.mainFields instead
node-resolve: setting options.module is deprecated, please override options.mainFields instead
node-resolve: setting options.jsnext is deprecated, please override options.mainFields instead
(flow-remove-types plugin) SyntaxError: Unexpected token (338:20)
at undefined:338:20
SyntaxError: Unexpected token (338:20)
at Parser.pp$5.raise (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:4454:13)
at Parser.pp.unexpected (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:1761:8)
at Parser.pp$3.parseExprAtom (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:3750:12)
at Parser.parseExprAtom (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:7238:22)
at Parser.pp$3.parseExprSubscripts (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:3494:19)
at Parser.pp$3.parseMaybeUnary (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:3474:19)
at Parser.pp$3.parseExprOps (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:3404:19)
at Parser.pp$3.parseMaybeConditional (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:3381:19)
at Parser.pp$3.parseMaybeAssign (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:3344:19)
at Parser.parseMaybeAssign (/Users/marvinheilemann/Development/CookieConsent/node_modules/.pnpm/registry.npmjs.org/babylon/6.18.0/node_modules/babylon/lib/index.js:6474:20)
ERROR Command failed with exit code 1.
react-select/async seems to be causing this.
Seems to be the sae as #379