Skip to content

Conversation

@Tatider
Copy link

@Tatider Tatider commented Oct 27, 2025

Parsing error: 'import' and 'export' may appear only with 'sourceType: module' in JS files for Odoo19
required for this case

@Tatider Tatider force-pushed the fix-j-import-export-error-in-19 branch from c07f66c to f09f423 Compare October 27, 2025 14:31
@Tatider Tatider force-pushed the fix-j-import-export-error-in-19 branch from f09f423 to b42119e Compare October 27, 2025 14:34
@pedrobaeza
Copy link
Member

I don't think you should change this, but change the extension to .esm.js.

@Tatider
Copy link
Author

Tatider commented Oct 29, 2025

I don't think you should change this, but change the extension to .esm.js.

Unfortunately, I don't understand what you are asking me to do... I am lacking experience with the pre-commit linters templates.

In the origin code I could see the line with update of sourceType starting from version 18, but in the repository sale-workflow it has no effect. So I have updated it directly in sale-workflow repository in the branch for version 19.0, but I've been asked to do the change directly to this repository (oca-addons-repo-template).
So I have done the change to the best of my abilities to ensure things would work in version 19.0, even though I don't see how change of the template would affect already existing branch in sale-workflow...

Could @pedrobaeza and @rousseldenis discuss what and where I should do? I would be gratefull if you could also provide a link to an example of what is expected from me, I am trying my very best to keep things moving...

@Tatider Tatider closed this Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants