Skip to content
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

Closed
johan-smits opened this issue Dec 22, 2021 · 2 comments · Fixed by #62
Closed

export declarations may only appear at top level of a module #61

johan-smits opened this issue Dec 22, 2021 · 2 comments · Fixed by #62

Comments

@johan-smits
Copy link

With version 2.29.1 the javascript fails to work with a normal asset pipeline. Caused by #60

export declarations may only appear at top level of a module.

I guess just the export needs to be removed?

@HADDADSOHAIB
Copy link

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.
@derekprior
Copy link
Owner

Fixed with 2.29.1.1. Thanks @ashkulz

https://rubygems.org/gems/momentjs-rails/versions/2.29.1.1

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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants