unjs / rc9

Read/Write config couldn't be easier!
Other
273 stars 6 forks source link

Alert, Typo in the new Version 1.2.1 #6

Closed vin-ni closed 2 years ago

vin-ni commented 2 years ago

When building Node Application with Version 1.2.1 I get this error:

/home/server/mydomain.com/node_modules/rc9/dist/index.cjs:51
  return options?.flat ? config : flat__default.unflatten(config, { overwrite: true });
                 ^

SyntaxError: Unexpected token '.'
danielroe commented 2 years ago

Looks like you need to upgrade your node version to 14+.

vin-ni commented 2 years ago

Can't update to 12 as other packages aren't compatible :/

pi0 commented 2 years ago

Sorry mad bad. Had to happen in a major version. Reverting synax upgrade shortly.

pi0 commented 2 years ago

BTW please consider upgrading to a support Node.js version. 12.x is going to be dead soon (https://nodejs.org/en/about/releases/)

pi0 commented 2 years ago

Fixed in rc9@1.2.2 (https://github.com/unjs/rc9/commit/a4349ab85606e71b65e6a4df70dc889d26223efd)