Git Product home page Git Product logo

Comments (5)

Flowko avatar Flowko commented on August 23, 2024 2

@alexzaganelli hi, hope u doing well!
a more detailed error, happens only on latest version of strapi 4.1.8
strapi-plugin-email-designer\\admin\\src\\pages\\HomePage\\index.js:150:10: ERROR: Transforming for-await loops to the configured target environment ("es2015") is not supported yet

from strapi-plugin-email-designer.

alexzaganelli avatar alexzaganelli commented on August 23, 2024 1

Thank you all for your contribution!
This issue should be fixed on 2.1.1

from strapi-plugin-email-designer.

github-actions avatar github-actions commented on August 23, 2024

Thank you!! This is your first issue on this repo

from strapi-plugin-email-designer.

mattia-beta avatar mattia-beta commented on August 23, 2024

I'm on strapi 4.1.8 i've got the same error.

node_modules/strapi-plugin-email-designer/admin/src/pages/HomePage/index.js:150:10: ERROR: Transforming for-await loops to the configured target environment ("es2015") is not supported yet\n

from strapi-plugin-email-designer.

kashkashio avatar kashkashio commented on August 23, 2024

Okay i got it working.
You should go to the file:
/admin/src/pages/HomePage/index.js line 150 and change the for await to this:

await importedTemplates.forEach(async (template)=>{ console.log('💬 :: forawait :: template', template); const response = await request(/${pluginId}/templates/${template.id}`, {
method: 'POST',
body: {
...template,
created_at: dayjs().unix(),
updated_at: dayjs().unix(),
import: true,
},
});
console.log('💬 :: forawait :: response', response);

if (!isEmpty(response)) _importedTemplates.push(response);

});`

from strapi-plugin-email-designer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.