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

import mammoth error #8646

Closed
7 tasks done
dazuo-art opened this issue Jun 18, 2022 · 1 comment
Closed
7 tasks done

import mammoth error #8646

dazuo-art opened this issue Jun 18, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@dazuo-art
Copy link

dazuo-art commented Jun 18, 2022

Describe the bug

import mammoth from "mammoth" 报错

Reproduction

https://github.com/dazuo-art/viteAndMammoth/tree/master

System Info

window10,npm@8.1.2,vite@2.6.14(2.9.12),chrome

Used Package Manager

npm

Logs

sax.js:221 Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
    at sax.js:221:46
    at node_modules/sax/lib/sax.js (sax.js:1574:1)
    at __require2 (chunk-OROXOI2D.js?v=fa264171:16:50)
    at node_modules/mammoth/lib/xml/reader.js (reader.js:2:11)
    at __require2 (chunk-OROXOI2D.js?v=fa264171:16:50)
    at node_modules/mammoth/lib/xml/index.js (index.js:6:22)
    at __require2 (chunk-OROXOI2D.js?v=fa264171:16:50)
    at node_modules/mammoth/lib/docx/office-xml-reader.js (office-xml-reader.js:4:11)
    at __require2 (chunk-OROXOI2D.js?v=fa264171:16:50)
    at node_modules/mammoth/lib/docx/docx-reader.js (docx-reader.js:11:26)
    at __require2 (chunk-OROXOI2D.js?v=fa264171:16:50)
    at node_modules/mammoth/lib/index.js (index.js:3:18)
    at __require2 (chunk-OROXOI2D.js?v=fa264171:16:50)
    at dep:mammoth:1:16

Validations

@sapphi-red
Copy link
Member

sapphi-red commented Jun 18, 2022

Closing as it worked after upgrading Vite to 3.0.0-alpha.10. It was fixed by #8338.

duplicate of #7555

@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Jun 18, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants