Topic: Gitlab distro fails to compile

hsabbagh free asked 3 years 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 free commented 3 years 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 free commented 3 years ago

The problem occurs.


Wojciech Staniszewski staff commented 3 years ago

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


hsabbagh free commented 3 years 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 free commented 3 years 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 3 years 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 free commented 3 years 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 free commented 3 years ago

The tgz file fails with the same error.


Krzysztof Wilk staff commented 3 years ago

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



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB5 1.3.0
  • Device: Mac
  • Browser: Chrome
  • OS: MacOS 11.5.2
  • Provided sample code: Yes
  • Provided link: No