Closed vladshcherbin closed 5 years ago
Hm, there is actually a reserved list of words and it has boolean
in it.
What's the advice in this case?
cc @lukastaegert
My advice would be to use the default export and access the boolean property on the default export. This is one of the cases where CJS does not map very well to ESM (though I must admit, boolean is probably only problematic in some old IE versions).
This is also one of the reasons why in Node's ESM support, this will be the only way to import CJS modules into ESM modules.
@lukastaegert will use it this way then. There is also a bool
export, probably an alias, an old api or smth. Thank you 🤗
Hey, 👋
I have an error when using
yup
package:It says
boolean
is not exported. However, in source code innode_modules
it is clearly exported:All other imports from this package work except this one. Strange part is that I can rename it to any other name (
boolean1
,booleana
or smth) and it will successfully import and use it.Is
boolean
word somehow reserved or what can cause this problem? 🤔rollup - 1.16.4 rollup-plugin-node-resolve - 5.2.0 rollup-plugin-commonjs - 10.0.1 reproduction - repo with demo