By CraigSau
Getting an error that I cannot pin down the proper solution for. The error given is
$ node ace build
[2022-03-08 19:10:23] /workspace/node_modules/@poppinss/utils/build/src/Helpers/string.js:241
[2022-03-08 19:10:23] return ${values[0]}${options?.pairSeparator || ' and '}${values[1]};
[2022-03-08 19:10:23] ^
[2022-03-08 19:10:23]
[2022-03-08 19:10:23] SyntaxError: Unexpected token ‘.’
I believe that this is due to an improper Node version from what I am able to tell, but after updating node, and updating yarn, I am still getting this same error on the build stage. Any idea’s on steps I can take to further troubleshoot / known solutions to this problem? I am a current Computer Science student, so please excuse my obvious ignorance in this matter as this is my first time using DigitalOcean.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Have you tried specifying your Node version?
You can do that by specifying the version in the engines directive of the package.json file as described here:
https://docs.digitalocean.com/products/app-platform/languages-frameworks/nodejs/#node-version
Let me know how it goes!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.