# Intermittent Parse Error on Plugin Rebuild

**URL:** <https://meta.discourse.org/t/intermittent-parse-error-on-plugin-rebuild/151727>\
**Category:** Development\
**Created:** [17 במאי,‏ 2020,‏ 1:25am UTC](https://meta.discourse.org/t/intermittent-parse-error-on-plugin-rebuild/151727 "2020-05-17T01:25:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [17 במאי,‏ 2020,‏ 5:42am UTC](https://meta.discourse.org/t/intermittent-parse-error-on-plugin-rebuild/151727/4 "2020-05-17T05:42:19Z")

</div>

Just a guess: is it not interpreting the file as es6 because the file extension is .js? If you change the suffix, does it make a difference? (You’d need to replace a default parameter to test this obviously.)

If that’s the case then there’s an issue with core? It should always be assuming it’s es6?

---

_[View the full topic](https://meta.discourse.org/t/intermittent-parse-error-on-plugin-rebuild/151727)._
