twoflags-io / twoflags-api

TwoFlags Feature Flags API
53 stars 11 forks source link

Rollup TypeError for resolver #7

Open fimbault opened 4 years ago

fimbault commented 4 years ago

To reproduce : followed the install steps I'm using node v14.7.0 and rollup v2.28.2

I had to include rollup-plugin-typescript2 and it worked fine for the api part

For the resolver, I get into an issue. When running rollup -c --config rollup-resolver.config.js

[!] TypeError: The "path" argument must be of type string. Received an instance of Array TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Array

ernestofreyreg commented 4 years ago

This seems to be an incompatibility on config between rollup 1.x and 2.x.

With rollup 1.x and node v14 it build the resolver correctly.

Migrating rollup to 2.x including config files seems like the solution here.

PRs? :)