dimer47 / node-ovh-objectstorage

Creative Commons Attribution Share Alike 4.0 International
12 stars 11 forks source link

Unexpected token '.' #25

Open meekk opened 2 years ago

meekk commented 2 years ago

OVHObjectStorage.js:93 this.key = this.config?.key !== undefined ? this.config.key : null; ^

SyntaxError: Unexpected token '.'

dimer47 commented 2 years ago

Hi Meekk,

I have tried to reproduce the error you are having but I cannot. Are you sure that your config object is correctly formed?

Can you tell me the version of Node JS, please ?

Thank you

dimer47 commented 2 years ago

Hello @meekk,

Have you been able to verify the configuration ? Do you still have this problem ? No response from you, I will close this issue.

Borrelli commented 2 years ago

Hello,

You introduce a breaking change with v2.0.4 because you are using optional chaining which is incompatible with node v12. A simple downgrade to v2.0.3 will fix the issue.