-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export declarations may only appear at top level of a module #61
Comments
I just spent a whole day trying to solve this, no luck. a quick work around is to go back to v 2.20.1 |
shouichi
added a commit
to shouichi/administrate
that referenced
this issue
Dec 28, 2021
v2.29.1 causes "export declarations may only appear at top level of a module" error. See derekprior/momentjs-rails#61.
pablobm
added a commit
to pablobm/administrate
that referenced
this issue
Dec 28, 2021
A new version of momentjs-rails was released on 2021-12-20. This unfortunately contains some JS that browsers can't interpret (specifically, an `export` declaration), breaking all JS in Administrate. Other people are reporting this issue at derekprior/momentjs-rails#61 Pinning the previous version of the gem appears to be the only solution for now.
pablobm
added a commit
to pablobm/administrate
that referenced
this issue
Dec 28, 2021
A new version of momentjs-rails was released on 2021-12-20. This unfortunately contains some JS that browsers can't interpret (specifically, an `export` declaration), breaking all JS in Administrate. Other people are reporting this issue at derekprior/momentjs-rails#61 Pinning the previous version of the gem appears to be the only solution for now.
pablobm
pushed a commit
to thoughtbot/administrate
that referenced
this issue
Dec 28, 2021
v2.29.1 causes "export declarations may only appear at top level of a module" error. See derekprior/momentjs-rails#61.
Fixed with 2.29.1.1. Thanks @ashkulz |
KingTiger001
added a commit
to KingTiger001/admin-Rails-project
that referenced
this issue
Jan 15, 2023
v2.29.1 causes "export declarations may only appear at top level of a module" error. See derekprior/momentjs-rails#61.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With version
2.29.1
the javascript fails to work with a normal asset pipeline. Caused by #60export declarations may only appear at top level of a module
.I guess just the export needs to be removed?
The text was updated successfully, but these errors were encountered: