Closed pro-sumer closed 1 year ago
I'm getting similar errors but from the other side - my codebase is CommonJS and I can't use 0.1.10 because I get an "Cannot use import statement outside a module"
error, because dist/index.js
contains import
statements (e.g. ESM syntax).
Hey all, yes thanks for raising this. We recently changed how the package was compiled so that we weren't bundling all the dependencies together. The package was previously all CJS but our change resulted in some ESM syntax being used. The fix I have moves us back to an all CJS package. I'll have up shortly.
A coworker linked me this today, it's very handy to know about: https://publint.dev/@1password/op-js@0.1.10
Oh dang, that is very neat! Thank you for sharing :)
Your environment
op-js version: 0.1.10
CLI version: 2.19.0
OS: macOS Ventura 13.5.1
What happened?
Syntax error when importing op-js after upgrading from 0.1.9 to 0.1.10:
(import succeeds after reverting to 0.1.9)
What did you expect to happen?
Import succeeds as before (with 0.1.9).
Steps to reproduce
package.json
:item
from op-js (and rename it):Notes & Logs
jh/fix-cjs