ProseMirror / prosemirror

The ProseMirror WYSIWYM editor
http://prosemirror.net/
MIT License
7.6k stars 336 forks source link

prosemirror-model tests fail when run from a clean git clone #1335

Open tomi-bigpi opened 1 year ago

tomi-bigpi commented 1 year ago

First of all, thanks for all the great work.

Summary

tldr; When we attempt to run the tests for prosemirror-model, we're seeing 75 failures.

We ran into the following while troubleshooting an issue we're running into with our app and thought it might be of interest (our original issue is also the same RangeError, but we should ignore that here).

Environment(s)

Node

Tested while running the following Node versions (switching via nvm):

Typescript

Machine

Apple MacBook Pro (16-inch 2021 - Apple M1 Pro) macOs Monterey 12.6.1 (21G217) (and another Mac for which I don't have the exact specs)

Reproduction steps

git clone https://github.com/ProseMirror/prosemirror-model.git
cd prosemirror-model
# git checkout 1.18.2
npm install
npm run prepare
npm test

This results in 75 tests with failures similar to RangeError: Can not convert <"hello"> to a Fragment (looks like multiple versions of prosemirror-model were loaded).

Example test error output

  1) DOMParser
       parse
         can represent simple node:
     RangeError: Can not convert <"hello"> to a Fragment (looks like multiple versions of prosemirror-model were loaded)
      at Function.from (file:///some-path/prosemirror-model/node_modules/prosemirror-model/dist/index.js:359:15)
      at NodeType.create (file:///some-path/prosemirror-model/node_modules/prosemirror-model/dist/index.js:2145:66)
      at NodeContext.finish (file:///some-path/prosemirror-model/dist/index.js:2691:38)
      at ParseContext.closeExtra (file:///some-path/prosemirror-model/dist/index.js:2995:62)
      at ParseContext.finish (file:///some-path/prosemirror-model/dist/index.js:3001:14)
      at DOMParser.parse (file:///some-path/prosemirror-model/dist/index.js:2519:24)
      at Context.<anonymous> (file:///some-path/prosemirror-model/test/test-dom.js:23:50)

Workarounds

Not really a workaround, but noticed that removing the following lines from prosemirror-model's package.json allows the tests to succeed:

  "exports": {
    "import": "./dist/index.js",
    "require": "./dist/index.cjs"
  },

Additional details

Output of npm ls -a:

npm ls -a
prosemirror-model@1.18.2 /some-path/prosemirror-model
├─┬ @prosemirror/buildhelper@0.1.5
│ ├─┬ @babel/core@7.20.2
│ │ ├─┬ @ampproject/remapping@2.2.0
│ │ │ ├─┬ @jridgewell/gen-mapping@0.1.1
│ │ │ │ ├── @jridgewell/set-array@1.1.2
│ │ │ │ └── @jridgewell/sourcemap-codec@1.4.14
│ │ │ └─┬ @jridgewell/trace-mapping@0.3.17
│ │ │   ├── @jridgewell/resolve-uri@3.1.0
│ │ │   └── @jridgewell/sourcemap-codec@1.4.14 deduped
│ │ ├─┬ @babel/code-frame@7.18.6
│ │ │ └─┬ @babel/highlight@7.18.6
│ │ │   ├── @babel/helper-validator-identifier@7.19.1 deduped
│ │ │   ├─┬ chalk@2.4.2
│ │ │   │ ├─┬ ansi-styles@3.2.1
│ │ │   │ │ └─┬ color-convert@1.9.3
│ │ │   │ │   └── color-name@1.1.3
│ │ │   │ ├── escape-string-regexp@1.0.5
│ │ │   │ └─┬ supports-color@5.5.0
│ │ │   │   └── has-flag@3.0.0
│ │ │   └── js-tokens@4.0.0
│ │ ├─┬ @babel/generator@7.20.4
│ │ │ ├── @babel/types@7.20.2 deduped
│ │ │ ├─┬ @jridgewell/gen-mapping@0.3.2
│ │ │ │ ├── @jridgewell/set-array@1.1.2 deduped
│ │ │ │ ├── @jridgewell/sourcemap-codec@1.4.14 deduped
│ │ │ │ └── @jridgewell/trace-mapping@0.3.17 deduped
│ │ │ └── jsesc@2.5.2
│ │ ├─┬ @babel/helper-compilation-targets@7.20.0
│ │ │ ├── @babel/compat-data@7.20.1 deduped
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-validator-option@7.18.6 deduped
│ │ │ ├─┬ browserslist@4.21.4
│ │ │ │ ├── caniuse-lite@1.0.30001431
│ │ │ │ ├── electron-to-chromium@1.4.284
│ │ │ │ ├── node-releases@2.0.6
│ │ │ │ └─┬ update-browserslist-db@1.0.10
│ │ │ │   ├── browserslist@4.21.4 deduped
│ │ │ │   ├── escalade@3.1.1 deduped
│ │ │ │   └── picocolors@1.0.0
│ │ │ └── semver@6.3.0 deduped
│ │ ├─┬ @babel/helper-module-transforms@7.20.2
│ │ │ ├── @babel/helper-environment-visitor@7.18.9
│ │ │ ├─┬ @babel/helper-module-imports@7.18.6
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-simple-access@7.20.2
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-split-export-declaration@7.18.6
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ ├── @babel/helper-validator-identifier@7.19.1
│ │ │ ├── @babel/template@7.18.10 deduped
│ │ │ ├── @babel/traverse@7.20.1 deduped
│ │ │ └── @babel/types@7.20.2 deduped
│ │ ├─┬ @babel/helpers@7.20.1
│ │ │ ├── @babel/template@7.18.10 deduped
│ │ │ ├── @babel/traverse@7.20.1 deduped
│ │ │ └── @babel/types@7.20.2 deduped
│ │ ├── @babel/parser@7.20.3
│ │ ├─┬ @babel/template@7.18.10
│ │ │ ├── @babel/code-frame@7.18.6 deduped
│ │ │ ├── @babel/parser@7.20.3 deduped
│ │ │ └── @babel/types@7.20.2 deduped
│ │ ├─┬ @babel/traverse@7.20.1
│ │ │ ├── @babel/code-frame@7.18.6 deduped
│ │ │ ├── @babel/generator@7.20.4 deduped
│ │ │ ├── @babel/helper-environment-visitor@7.18.9 deduped
│ │ │ ├─┬ @babel/helper-function-name@7.19.0
│ │ │ │ ├── @babel/template@7.18.10 deduped
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-hoist-variables@7.18.6
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ ├── @babel/helper-split-export-declaration@7.18.6 deduped
│ │ │ ├── @babel/parser@7.20.3 deduped
│ │ │ ├── @babel/types@7.20.2 deduped
│ │ │ ├── debug@4.3.4 deduped
│ │ │ └── globals@11.12.0
│ │ ├─┬ @babel/types@7.20.2
│ │ │ ├── @babel/helper-string-parser@7.19.4
│ │ │ ├── @babel/helper-validator-identifier@7.19.1 deduped
│ │ │ └── to-fast-properties@2.0.0
│ │ ├── convert-source-map@1.9.0
│ │ ├─┬ debug@4.3.4
│ │ │ └── ms@2.1.2
│ │ ├── gensync@1.0.0-beta.2
│ │ ├── json5@2.2.1
│ │ └── semver@6.3.0
│ ├─┬ @babel/preset-env@7.20.2
│ │ ├── @babel/compat-data@7.20.1
│ │ ├── @babel/core@7.20.2 deduped
│ │ ├── @babel/helper-compilation-targets@7.20.0 deduped
│ │ ├── @babel/helper-plugin-utils@7.20.2
│ │ ├── @babel/helper-validator-option@7.18.6
│ │ ├─┬ @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-skip-transparent-expression-wrappers@7.20.0
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ └── @babel/plugin-proposal-optional-chaining@7.18.9 deduped
│ │ ├─┬ @babel/plugin-proposal-async-generator-functions@7.20.1
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-environment-visitor@7.18.9 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-remap-async-to-generator@7.18.9
│ │ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ │ ├── @babel/helper-annotate-as-pure@7.18.6 deduped
│ │ │ │ ├── @babel/helper-environment-visitor@7.18.9 deduped
│ │ │ │ ├─┬ @babel/helper-wrap-function@7.19.0
│ │ │ │ │ ├── @babel/helper-function-name@7.19.0 deduped
│ │ │ │ │ ├── @babel/template@7.18.10 deduped
│ │ │ │ │ ├── @babel/traverse@7.20.1 deduped
│ │ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-async-generators@7.8.4 deduped
│ │ ├─┬ @babel/plugin-proposal-class-properties@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-create-class-features-plugin@7.20.2
│ │ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ │ ├── @babel/helper-annotate-as-pure@7.18.6 deduped
│ │ │ │ ├── @babel/helper-environment-visitor@7.18.9 deduped
│ │ │ │ ├── @babel/helper-function-name@7.19.0 deduped
│ │ │ │ ├─┬ @babel/helper-member-expression-to-functions@7.18.9
│ │ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ │ ├── @babel/helper-optimise-call-expression@7.18.6 deduped
│ │ │ │ ├── @babel/helper-replace-supers@7.19.1 deduped
│ │ │ │ └── @babel/helper-split-export-declaration@7.18.6 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-proposal-class-static-block@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-create-class-features-plugin@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-class-static-block@7.14.5 deduped
│ │ ├─┬ @babel/plugin-proposal-dynamic-import@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-dynamic-import@7.8.3 deduped
│ │ ├─┬ @babel/plugin-proposal-export-namespace-from@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-export-namespace-from@7.8.3 deduped
│ │ ├─┬ @babel/plugin-proposal-json-strings@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-json-strings@7.8.3 deduped
│ │ ├─┬ @babel/plugin-proposal-logical-assignment-operators@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-logical-assignment-operators@7.10.4 deduped
│ │ ├─┬ @babel/plugin-proposal-nullish-coalescing-operator@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-nullish-coalescing-operator@7.8.3 deduped
│ │ ├─┬ @babel/plugin-proposal-numeric-separator@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-numeric-separator@7.10.4 deduped
│ │ ├─┬ @babel/plugin-proposal-object-rest-spread@7.20.2
│ │ │ ├── @babel/compat-data@7.20.1 deduped
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-compilation-targets@7.20.0 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ ├── @babel/plugin-syntax-object-rest-spread@7.8.3 deduped
│ │ │ └── @babel/plugin-transform-parameters@7.20.3 deduped
│ │ ├─┬ @babel/plugin-proposal-optional-catch-binding@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-optional-catch-binding@7.8.3 deduped
│ │ ├─┬ @babel/plugin-proposal-optional-chaining@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ ├── @babel/helper-skip-transparent-expression-wrappers@7.20.0 deduped
│ │ │ └── @babel/plugin-syntax-optional-chaining@7.8.3 deduped
│ │ ├─┬ @babel/plugin-proposal-private-methods@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-create-class-features-plugin@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-proposal-private-property-in-object@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-annotate-as-pure@7.18.6
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ ├── @babel/helper-create-class-features-plugin@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/plugin-syntax-private-property-in-object@7.14.5 deduped
│ │ ├─┬ @babel/plugin-proposal-unicode-property-regex@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-create-regexp-features-plugin@7.19.0
│ │ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ │ ├── @babel/helper-annotate-as-pure@7.18.6 deduped
│ │ │ │ └─┬ regexpu-core@5.2.2
│ │ │ │   ├─┬ regenerate-unicode-properties@10.1.0
│ │ │ │   │ └── regenerate@1.4.2 deduped
│ │ │ │   ├── regenerate@1.4.2
│ │ │ │   ├── regjsgen@0.7.1
│ │ │ │   ├─┬ regjsparser@0.9.1
│ │ │ │   │ └── jsesc@0.5.0
│ │ │ │   ├─┬ unicode-match-property-ecmascript@2.0.0
│ │ │ │   │ ├── unicode-canonical-property-names-ecmascript@2.0.0
│ │ │ │   │ └── unicode-property-aliases-ecmascript@2.1.0
│ │ │ │   └── unicode-match-property-value-ecmascript@2.1.0
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-async-generators@7.8.4
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-class-properties@7.12.13
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-class-static-block@7.14.5
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-dynamic-import@7.8.3
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-export-namespace-from@7.8.3
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-import-assertions@7.20.0
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-json-strings@7.8.3
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-logical-assignment-operators@7.10.4
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-nullish-coalescing-operator@7.8.3
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-numeric-separator@7.10.4
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-object-rest-spread@7.8.3
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-optional-catch-binding@7.8.3
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-optional-chaining@7.8.3
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-private-property-in-object@7.14.5
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-syntax-top-level-await@7.14.5
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-arrow-functions@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-async-to-generator@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-module-imports@7.18.6 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/helper-remap-async-to-generator@7.18.9 deduped
│ │ ├─┬ @babel/plugin-transform-block-scoped-functions@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-block-scoping@7.20.2
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-classes@7.20.2
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-annotate-as-pure@7.18.6 deduped
│ │ │ ├── @babel/helper-compilation-targets@7.20.0 deduped
│ │ │ ├── @babel/helper-environment-visitor@7.18.9 deduped
│ │ │ ├── @babel/helper-function-name@7.19.0 deduped
│ │ │ ├─┬ @babel/helper-optimise-call-expression@7.18.6
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-replace-supers@7.19.1
│ │ │ │ ├── @babel/helper-environment-visitor@7.18.9 deduped
│ │ │ │ ├── @babel/helper-member-expression-to-functions@7.18.9 deduped
│ │ │ │ ├── @babel/helper-optimise-call-expression@7.18.6 deduped
│ │ │ │ ├── @babel/traverse@7.20.1 deduped
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ ├── @babel/helper-split-export-declaration@7.18.6 deduped
│ │ │ └── globals@11.12.0 deduped
│ │ ├─┬ @babel/plugin-transform-computed-properties@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-destructuring@7.20.2
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-dotall-regex@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-create-regexp-features-plugin@7.19.0 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-duplicate-keys@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-exponentiation-operator@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-builder-binary-assignment-operator-visitor@7.18.9
│ │ │ │ ├─┬ @babel/helper-explode-assignable-expression@7.18.6
│ │ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ │ └── @babel/types@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-for-of@7.18.8
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-function-name@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-compilation-targets@7.20.0 deduped
│ │ │ ├── @babel/helper-function-name@7.19.0 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-literals@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-member-expression-literals@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-modules-amd@7.19.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-module-transforms@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-modules-commonjs@7.19.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-module-transforms@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/helper-simple-access@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-modules-systemjs@7.19.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-hoist-variables@7.18.6 deduped
│ │ │ ├── @babel/helper-module-transforms@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/helper-validator-identifier@7.19.1 deduped
│ │ ├─┬ @babel/plugin-transform-modules-umd@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-module-transforms@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-named-capturing-groups-regex@7.19.1
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-create-regexp-features-plugin@7.19.0 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-new-target@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-object-super@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/helper-replace-supers@7.19.1 deduped
│ │ ├─┬ @babel/plugin-transform-parameters@7.20.3
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-property-literals@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-regenerator@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └─┬ regenerator-transform@0.15.1
│ │ │   └─┬ @babel/runtime@7.20.1
│ │ │     └── regenerator-runtime@0.13.11
│ │ ├─┬ @babel/plugin-transform-reserved-words@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-shorthand-properties@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-spread@7.19.0
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ └── @babel/helper-skip-transparent-expression-wrappers@7.20.0 deduped
│ │ ├─┬ @babel/plugin-transform-sticky-regex@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-template-literals@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-typeof-symbol@7.18.9
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-unicode-escapes@7.18.10
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/plugin-transform-unicode-regex@7.18.6
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-create-regexp-features-plugin@7.19.0 deduped
│ │ │ └── @babel/helper-plugin-utils@7.20.2 deduped
│ │ ├─┬ @babel/preset-modules@0.1.5
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ ├── @babel/plugin-proposal-unicode-property-regex@7.18.6 deduped
│ │ │ ├── @babel/plugin-transform-dotall-regex@7.18.6 deduped
│ │ │ ├── @babel/types@7.20.2 deduped
│ │ │ └── esutils@2.0.3 deduped
│ │ ├── @babel/types@7.20.2 deduped
│ │ ├─┬ babel-plugin-polyfill-corejs2@0.3.3
│ │ │ ├── @babel/compat-data@7.20.1 deduped
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├─┬ @babel/helper-define-polyfill-provider@0.3.3
│ │ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ │ ├── @babel/helper-compilation-targets@7.20.0 deduped
│ │ │ │ ├── @babel/helper-plugin-utils@7.20.2 deduped
│ │ │ │ ├── debug@4.3.4 deduped
│ │ │ │ ├── lodash.debounce@4.0.8
│ │ │ │ ├── resolve@1.22.1 deduped
│ │ │ │ └── semver@6.3.0 deduped
│ │ │ └── semver@6.3.0 deduped
│ │ ├─┬ babel-plugin-polyfill-corejs3@0.6.0
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ ├── @babel/helper-define-polyfill-provider@0.3.3 deduped
│ │ │ └── core-js-compat@3.26.1 deduped
│ │ ├─┬ babel-plugin-polyfill-regenerator@0.4.1
│ │ │ ├── @babel/core@7.20.2 deduped
│ │ │ └── @babel/helper-define-polyfill-provider@0.3.3 deduped
│ │ ├─┬ core-js-compat@3.26.1
│ │ │ └── browserslist@4.21.4 deduped
│ │ └── semver@6.3.0 deduped
│ ├─┬ @marijn/buildtool@0.1.2
│ │ ├── @types/mocha@9.1.1
│ │ ├── acorn-walk@8.2.0
│ │ ├── acorn@8.8.1
│ │ ├─┬ rollup-plugin-dts@3.0.2
│ │ │ ├── @babel/code-frame@7.18.6 deduped
│ │ │ ├─┬ magic-string@0.25.9
│ │ │ │ └── sourcemap-codec@1.4.8
│ │ │ ├── rollup@2.79.1 deduped
│ │ │ └── typescript@4.9.3 deduped
│ │ ├─┬ rollup@2.79.1
│ │ │ └── fsevents@2.3.2
│ │ └── typescript@4.9.3
│ └─┬ @marijn/testtool@0.1.1
│   ├─┬ esmoduleserve@0.2.0
│   │ ├── acorn-walk@8.2.0 deduped
│   │ ├── acorn@8.8.1 deduped
│   │ ├─┬ resolve@1.22.1
│   │ │ ├─┬ is-core-module@2.11.0
│   │ │ │ └─┬ has@1.0.3
│   │ │ │   └── function-bind@1.1.1
│   │ │ ├── path-parse@1.0.7
│   │ │ └── supports-preserve-symlinks-flag@1.0.0
│   │ └── serve-static@1.15.0 deduped
│   ├── ist@1.1.7
│   ├─┬ mocha@10.1.0
│   │ ├── ansi-colors@4.1.1
│   │ ├── browser-stdout@1.3.1
│   │ ├─┬ chokidar@3.5.3
│   │ │ ├─┬ anymatch@3.1.2
│   │ │ │ ├── normalize-path@3.0.0 deduped
│   │ │ │ └── picomatch@2.3.1
│   │ │ ├─┬ braces@3.0.2
│   │ │ │ └─┬ fill-range@7.0.1
│   │ │ │   └─┬ to-regex-range@5.0.1
│   │ │ │     └── is-number@7.0.0
│   │ │ ├── fsevents@2.3.2 deduped
│   │ │ ├─┬ glob-parent@5.1.2
│   │ │ │ └── is-glob@4.0.3 deduped
│   │ │ ├─┬ is-binary-path@2.1.0
│   │ │ │ └── binary-extensions@2.2.0
│   │ │ ├─┬ is-glob@4.0.3
│   │ │ │ └── is-extglob@2.1.1
│   │ │ ├── normalize-path@3.0.0
│   │ │ └─┬ readdirp@3.6.0
│   │ │   └── picomatch@2.3.1 deduped
│   │ ├── debug@4.3.4 deduped
│   │ ├── diff@5.0.0
│   │ ├── escape-string-regexp@4.0.0
│   │ ├─┬ find-up@5.0.0
│   │ │ ├─┬ locate-path@6.0.0
│   │ │ │ └─┬ p-locate@5.0.0
│   │ │ │   └─┬ p-limit@3.1.0
│   │ │ │     └── yocto-queue@0.1.0
│   │ │ └── path-exists@4.0.0
│   │ ├─┬ glob@7.2.0
│   │ │ ├── fs.realpath@1.0.0
│   │ │ ├─┬ inflight@1.0.6
│   │ │ │ ├── once@1.4.0 deduped
│   │ │ │ └── wrappy@1.0.2
│   │ │ ├── inherits@2.0.4
│   │ │ ├─┬ minimatch@3.1.2
│   │ │ │ └─┬ brace-expansion@1.1.11
│   │ │ │   ├── balanced-match@1.0.2 deduped
│   │ │ │   └── concat-map@0.0.1
│   │ │ ├─┬ once@1.4.0
│   │ │ │ └── wrappy@1.0.2 deduped
│   │ │ └── path-is-absolute@1.0.1
│   │ ├── he@1.2.0
│   │ ├─┬ js-yaml@4.1.0
│   │ │ └── argparse@2.0.1
│   │ ├─┬ log-symbols@4.1.0
│   │ │ ├─┬ chalk@4.1.2
│   │ │ │ ├─┬ ansi-styles@4.3.0
│   │ │ │ │ └─┬ color-convert@2.0.1
│   │ │ │ │   └── color-name@1.1.4
│   │ │ │ └─┬ supports-color@7.2.0
│   │ │ │   └── has-flag@4.0.0
│   │ │ └── is-unicode-supported@0.1.0
│   │ ├─┬ minimatch@5.0.1
│   │ │ └─┬ brace-expansion@2.0.1
│   │ │   └── balanced-match@1.0.2
│   │ ├── ms@2.1.3
│   │ ├── nanoid@3.3.3
│   │ ├─┬ serialize-javascript@6.0.0
│   │ │ └─┬ randombytes@2.1.0
│   │ │   └── safe-buffer@5.2.1 deduped
│   │ ├── strip-json-comments@3.1.1
│   │ ├─┬ supports-color@8.1.1
│   │ │ └── has-flag@4.0.0
│   │ ├── workerpool@6.2.1
│   │ ├── yargs-parser@20.2.4
│   │ ├─┬ yargs-unparser@2.0.0
│   │ │ ├── camelcase@6.3.0
│   │ │ ├── decamelize@4.0.0
│   │ │ ├── flat@5.0.2
│   │ │ └── is-plain-obj@2.1.0
│   │ └─┬ yargs@16.2.0
│   │   ├─┬ cliui@7.0.4
│   │   │ ├── string-width@4.2.3 deduped
│   │   │ ├─┬ strip-ansi@6.0.1
│   │   │ │ └── ansi-regex@5.0.1
│   │   │ └─┬ wrap-ansi@7.0.0
│   │   │   ├─┬ ansi-styles@4.3.0
│   │   │   │ └─┬ color-convert@2.0.1
│   │   │   │   └── color-name@1.1.4
│   │   │   ├── string-width@4.2.3 deduped
│   │   │   └── strip-ansi@6.0.1 deduped
│   │   ├── escalade@3.1.1
│   │   ├── get-caller-file@2.0.5
│   │   ├── require-directory@2.1.1
│   │   ├─┬ string-width@4.2.3
│   │   │ ├── emoji-regex@8.0.0
│   │   │ ├── is-fullwidth-code-point@3.0.0
│   │   │ └── strip-ansi@6.0.1 deduped
│   │   ├── y18n@5.0.8
│   │   └── yargs-parser@20.2.4 deduped
│   ├─┬ selenium-webdriver@4.6.1
│   │ ├─┬ jszip@3.10.1
│   │ │ ├─┬ lie@3.3.0
│   │ │ │ └── immediate@3.0.6
│   │ │ ├── pako@1.0.11
│   │ │ ├─┬ readable-stream@2.3.7
│   │ │ │ ├── core-util-is@1.0.3
│   │ │ │ ├── inherits@2.0.4 deduped
│   │ │ │ ├── isarray@1.0.0
│   │ │ │ ├── process-nextick-args@2.0.1
│   │ │ │ ├── safe-buffer@5.1.2
│   │ │ │ ├─┬ string_decoder@1.1.1
│   │ │ │ │ └── safe-buffer@5.1.2
│   │ │ │ └── util-deprecate@1.0.2
│   │ │ └── setimmediate@1.0.5
│   │ ├─┬ tmp@0.2.1
│   │ │ └─┬ rimraf@3.0.2
│   │ │   └── glob@7.2.0 deduped
│   │ └─┬ ws@8.11.0
│   │   ├── UNMET OPTIONAL DEPENDENCY bufferutil@^4.0.1
│   │   └── UNMET OPTIONAL DEPENDENCY utf-8-validate@^5.0.2
│   └─┬ serve-static@1.15.0
│     ├── encodeurl@1.0.2
│     ├── escape-html@1.0.3
│     ├── parseurl@1.3.3
│     └─┬ send@0.18.0
│       ├─┬ debug@2.6.9
│       │ └── ms@2.0.0
│       ├── depd@2.0.0
│       ├── destroy@1.2.0
│       ├── encodeurl@1.0.2 deduped
│       ├── escape-html@1.0.3 deduped
│       ├── etag@1.8.1
│       ├── fresh@0.5.2
│       ├─┬ http-errors@2.0.0
│       │ ├── depd@2.0.0 deduped
│       │ ├── inherits@2.0.4 deduped
│       │ ├── setprototypeof@1.2.0
│       │ ├── statuses@2.0.1 deduped
│       │ └── toidentifier@1.0.1
│       ├── mime@1.6.0
│       ├── ms@2.1.3
│       ├─┬ on-finished@2.4.1
│       │ └── ee-first@1.1.1
│       ├── range-parser@1.2.1
│       └── statuses@2.0.1
├─┬ jsdom@10.1.0
│ ├── abab@1.0.4
│ ├─┬ acorn-globals@3.1.0
│ │ └── acorn@4.0.13
│ ├── acorn@4.0.13
│ ├── array-equal@1.0.0
│ ├── content-type-parser@1.0.2
│ ├── cssom@0.3.8
│ ├─┬ cssstyle@0.2.37
│ │ └── cssom@0.3.8 deduped
│ ├─┬ escodegen@1.14.3
│ │ ├── esprima@4.0.1
│ │ ├── estraverse@4.3.0
│ │ ├── esutils@2.0.3
│ │ ├─┬ optionator@0.8.3
│ │ │ ├── deep-is@0.1.4
│ │ │ ├── fast-levenshtein@2.0.6
│ │ │ ├─┬ levn@0.3.0
│ │ │ │ ├── prelude-ls@1.1.2 deduped
│ │ │ │ └── type-check@0.3.2 deduped
│ │ │ ├── prelude-ls@1.1.2
│ │ │ ├─┬ type-check@0.3.2
│ │ │ │ └── prelude-ls@1.1.2 deduped
│ │ │ └── word-wrap@1.2.3
│ │ └── source-map@0.6.1
│ ├─┬ html-encoding-sniffer@1.0.2
│ │ └── whatwg-encoding@1.0.5 deduped
│ ├── nwmatcher@1.4.4
│ ├── parse5@1.5.1
│ ├── pn@1.1.0
│ ├─┬ request-promise-native@1.0.9
│ │ ├─┬ request-promise-core@1.1.4
│ │ │ ├── lodash@4.17.21
│ │ │ └── request@2.88.2 deduped
│ │ ├── request@2.88.2 deduped
│ │ ├── stealthy-require@1.1.1
│ │ └── tough-cookie@2.5.0 deduped
│ ├─┬ request@2.88.2
│ │ ├── aws-sign2@0.7.0
│ │ ├── aws4@1.11.0
│ │ ├── caseless@0.12.0
│ │ ├─┬ combined-stream@1.0.8
│ │ │ └── delayed-stream@1.0.0
│ │ ├── extend@3.0.2
│ │ ├── forever-agent@0.6.1
│ │ ├─┬ form-data@2.3.3
│ │ │ ├── asynckit@0.4.0
│ │ │ ├── combined-stream@1.0.8 deduped
│ │ │ └── mime-types@2.1.35 deduped
│ │ ├─┬ har-validator@5.1.5
│ │ │ ├─┬ ajv@6.12.6
│ │ │ │ ├── fast-deep-equal@3.1.3
│ │ │ │ ├── fast-json-stable-stringify@2.1.0
│ │ │ │ ├── json-schema-traverse@0.4.1
│ │ │ │ └─┬ uri-js@4.4.1
│ │ │ │   └── punycode@2.1.1 deduped
│ │ │ └── har-schema@2.0.0
│ │ ├─┬ http-signature@1.2.0
│ │ │ ├── assert-plus@1.0.0
│ │ │ ├─┬ jsprim@1.4.2
│ │ │ │ ├── assert-plus@1.0.0 deduped
│ │ │ │ ├── extsprintf@1.3.0
│ │ │ │ ├── json-schema@0.4.0
│ │ │ │ └─┬ verror@1.10.0
│ │ │ │   ├── assert-plus@1.0.0 deduped
│ │ │ │   ├── core-util-is@1.0.2
│ │ │ │   └── extsprintf@1.3.0 deduped
│ │ │ └─┬ sshpk@1.17.0
│ │ │   ├─┬ asn1@0.2.6
│ │ │   │ └── safer-buffer@2.1.2 deduped
│ │ │   ├── assert-plus@1.0.0 deduped
│ │ │   ├─┬ bcrypt-pbkdf@1.0.2
│ │ │   │ └── tweetnacl@0.14.5 deduped
│ │ │   ├─┬ dashdash@1.14.1
│ │ │   │ └── assert-plus@1.0.0 deduped
│ │ │   ├─┬ ecc-jsbn@0.1.2
│ │ │   │ ├── jsbn@0.1.1 deduped
│ │ │   │ └── safer-buffer@2.1.2 deduped
│ │ │   ├─┬ getpass@0.1.7
│ │ │   │ └── assert-plus@1.0.0 deduped
│ │ │   ├── jsbn@0.1.1
│ │ │   ├── safer-buffer@2.1.2 deduped
│ │ │   └── tweetnacl@0.14.5
│ │ ├── is-typedarray@1.0.0
│ │ ├── isstream@0.1.2
│ │ ├── json-stringify-safe@5.0.1
│ │ ├─┬ mime-types@2.1.35
│ │ │ └── mime-db@1.52.0
│ │ ├── oauth-sign@0.9.0
│ │ ├── performance-now@2.1.0
│ │ ├── qs@6.5.3
│ │ ├── safe-buffer@5.2.1
│ │ ├── tough-cookie@2.5.0 deduped
│ │ ├─┬ tunnel-agent@0.6.0
│ │ │ └── safe-buffer@5.2.1 deduped
│ │ └── uuid@3.4.0
│ ├── sax@1.2.4
│ ├── symbol-tree@3.2.4
│ ├─┬ tough-cookie@2.5.0
│ │ ├── psl@1.9.0
│ │ └── punycode@2.1.1
│ ├── webidl-conversions@4.0.2
│ ├─┬ whatwg-encoding@1.0.5
│ │ └─┬ iconv-lite@0.4.24
│ │   └── safer-buffer@2.1.2
│ ├─┬ whatwg-url@4.8.0
│ │ ├── tr46@0.0.3
│ │ └── webidl-conversions@3.0.1
│ └── xml-name-validator@2.0.1
├── orderedmap@2.1.0
└─┬ prosemirror-test-builder@1.1.0
  ├─┬ prosemirror-model@1.18.2
  │ └── orderedmap@2.1.0 deduped
  ├─┬ prosemirror-schema-basic@1.2.0
  │ └── prosemirror-model@1.18.2 deduped
  └─┬ prosemirror-schema-list@1.2.2
    ├── prosemirror-model@1.18.2 deduped
    ├─┬ prosemirror-state@1.4.2
    │ ├── prosemirror-model@1.18.2 deduped
    │ ├── prosemirror-transform@1.7.0 deduped
    │ └─┬ prosemirror-view@1.29.1
    │   ├── prosemirror-model@1.18.2 deduped
    │   ├── prosemirror-state@1.4.2 deduped
    │   └── prosemirror-transform@1.7.0 deduped
    └─┬ prosemirror-transform@1.7.0
      └── prosemirror-model@1.18.2 deduped
kevlened commented 7 months ago

I also ran into this issue. Removing the exports property worked for me.