Closed beornf closed 1 year ago
Thanks for the report and sorry for the inconvenience, this should be fixed in the new release v2.3.1
Excellent I've tested and that fixes the webpack errors. Not familiar with all the typescript and webpack quirks. Thanks 👍
Feature request
Summary
The current target for esbuild is
esnext
as seen below. https://github.com/Stun3R/strapi-sdk-js/blob/1ea69139c94ca3f804fbca45f5d59306e07727c1/rollup.config.mjs#L26-L28This uses modern features such as class properties and optional chaining operators. However these features cause webpack compile errors when importing in Nuxt 2.
Why is it needed?
To fix the following webpack compile errors:
Suggested solution(s)
Change the
esnext
target toes2019
inrollup.config.mjs
andtsconfig.json
. New builds will be compatible with Nuxt 2 and other frameworks.