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

Some malli functions don't work in CLJS release mode #603

Open
khmelevskii opened this issue Dec 26, 2021 · 0 comments
Open

Some malli functions don't work in CLJS release mode #603

khmelevskii opened this issue Dec 26, 2021 · 0 comments

Comments

@khmelevskii
Copy link

Everything works great in development mode, but in production mode I have an errors with such function like mu/merge or m/walk.

My shadow-cljs config

{:deps true
 :builds
 {:storybook {:target           :npm-module
              :output-dir       "public/js/stories"
              :ns-regexp        ".stories$"
              :compiler-options {:infer-externs true}}}}

I'm not sure that error in console can be useful

TypeError: Cannot read properties of undefined (reading 'prototype')
    at Object.<anonymous> (http://localhost:9080/main.6b9fd58f.iframe.bundle.js:1:685144)
    at Object../public/js/stories/malli.generator.js (http://localhost:9080/main.6b9fd58f.iframe.bundle.js:1:698104)

Please let me know if I need to prepare minimalistic repo with this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants