Gitlab distro fails to compile


Topic: Gitlab distro fails to compile

hsabbagh pro premium priority asked 2 weeks ago

Expected behavior

Use either "mdb-react-ui-kit/dist/mdb-react-ui-kit.js" or "mdb-react-ui-kit/dist/mdb-react-ui-kit.esm.js" without issues.

Actual behavior

Google closure compiler unshaded v20210505 fails to compile both JS files above.

Resources (screenshots, code snippets etc.)

Caused by:
IllegalStateException: Invalid child for ASSIGN node. Reference node:
VOID 2:4095  [length: 16] [source_file: node_modules/mdb-react-ui-kit/dist/mdb-react-ui-kit.js]
    NUMBER 0.0 2:4095  [length: 16] [source_file: node_modules/mdb-react-ui-kit/dist/mdb-react-ui-kit.js]

 Parent node:
ASSIGN 2:4095  [length: 7] [is_parenthesized: 1] [source_file: node_modules/mdb-react-ui-kit/dist/mdb-react-ui-kit.js]
    VOID 2:4095  [length: 16] [source_file: node_modules/mdb-react-ui-kit/dist/mdb-react-ui-kit.js]
        NUMBER 0.0 2:4095  [length: 16] [source_file: node_modules/mdb-react-ui-kit/dist/mdb-react-ui-kit.js]
    OBJECTLIT 2:4095  [length: 2] [source_file: node_modules/mdb-react-ui-kit/dist/mdb-react-ui-kit.js]

hsabbagh pro premium priority commented 2 weeks ago

mdb-react-ui-kit 1.3.0 compiles.


We will take a look at this problem. You also wrote a comment, that 1.3.0 compiles. So the problem occurs or not?


hsabbagh pro premium priority commented 2 weeks ago

The problem occurs.


Wojciech Staniszewski staff commented 2 weeks ago

Could you send some more info about this error? Or the above message is all?


hsabbagh pro premium priority commented 2 weeks ago

I am using Clojurescript, shadow-cljs 2.15.9. The above is the actual error from the Closure compiler. Everything else in the stacktrace is related to Clojurescript. If you want the Clojurescript details I will provide them to you.


hsabbagh pro premium priority commented 2 weeks ago

I find your website rather confusing. I was using the Gitlab distro. Is there another package for the Pro Essential that I should try?


Krzysztof Wilk staff commented 2 weeks ago

Hi!

Yes, you can click on the top right corner of the page, expand your account options, click "My orders" and download a .zip package with the MDB5 React Pro Essential package :) Anyway - we do not support Clojurescript at the moment. If there will be more questions about that - we will start supporting it :)

Keep coding!


hsabbagh pro premium priority commented 2 weeks ago

I respect that. This is not a Clojurescript problem though. It is a problem with compiling JS using the Google Closure compiler as stated above. I will try the zip file again.


hsabbagh pro premium priority commented 2 weeks ago

The tgz file fails with the same error.


Krzysztof Wilk staff commented a week ago

Okay, so we'll check it. Thanks for reporting that.


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 1.3.0
  • Device: Mac
  • Browser: Chrome
  • OS: MacOS 11.5.2
  • Provided sample code: No
  • Provided link: No
Tags