You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Appreciate the redux-orm concept. Tried testing it out with Redux and React served in a local html file for simplicity, and <script src="node_modules/redux-orm/lib/index.js"> leaves chrome choking on exports. Any chance you can configure Webpack to also output as UMD when publishing? A UMD build would also be really handy to share examples in jsbin/jsfiddle/codepen/etc.
The text was updated successfully, but these errors were encountered:
Attempting to use redux-orm in node without webpack. Tried installing and configuring webpack to export a UMD build. Hit this error. Not sure I got the configs right. FWIW, generating a UMD build using correct webpack/babel configs could reduce the need to troubleshoot others' transpiling issues.
In node6/electron, I repeatedly got the error "Class constructors cannot be invoked without 'new'" when using <ModelName>.create({}). Turns out that the current babel config doesn't work for all environments, so a UMD build still breaks. Figured out a correct config. Small additions to package.json. Will submit a PR for reference.
a-laughlin
changed the title
UMD build?
UMD build / Class constructors cannot be invoked without 'new'
Sep 18, 2016
Appreciate the
redux-orm
concept. Tried testing it out with Redux and React served in a local html file for simplicity, and<script src="node_modules/redux-orm/lib/index.js">
leaves chrome choking onexports
. Any chance you can configure Webpack to also output as UMD when publishing? A UMD build would also be really handy to share examples in jsbin/jsfiddle/codepen/etc.The text was updated successfully, but these errors were encountered: