Cannot use import statement outside a module

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • yuri
    replied
    I can't give an example. I'm quite busy on daily basis. Please invest some time. Try the ext-template initialization and then see what the file is.

    Leave a comment:


  • flanklin
    replied
    Originally posted by yuri
    For new extensions originated from the ext-template, it will ask whether you want to use ES6 modules upon initialization. For existing extensions, currently there's no guideline.
    Thank for you reply yuri

    Click image for larger version

Name:	image.png
Views:	207
Size:	29.4 KB
ID:	101644

    what is content in init js file? can you give a example?

    Leave a comment:


  • yuri
    replied
    For new extensions originated from the ext-template, it will ask whether you want to use ES6 modules upon initialization. For existing extensions, currently there's no guideline.

    Leave a comment:


  • flanklin
    replied
    Originally posted by yuri
    Likely, your are using ES6 modules in your customization. Use AMD instead.
    Thank for your reply, yuri

    But, It is module from our partner, that is using ES6. How to use it in our customization module?

    Leave a comment:


  • yuri
    replied
    Likely, your are using ES6 modules in your customization. Use AMD instead.

    Leave a comment:


  • flanklin
    started a topic Cannot use import statement outside a module

    Cannot use import statement outside a module

    Click image for larger version

Name:	image.png
Views:	260
Size:	19.4 KB
ID:	101610
    Can you help me to explain more about this error and how to fix it. Thank very much​
Working...