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

Class extends value undefined is not a constructor or null #711

Open
maifeeulasad opened this issue Sep 22, 2023 · 1 comment
Open

Class extends value undefined is not a constructor or null #711

maifeeulasad opened this issue Sep 22, 2023 · 1 comment

Comments

@maifeeulasad
Copy link

I get this error on import with archiver
Stack-trace:

Uncaught TypeError: Class extends value undefined is not a constructor or null
    at node_modules/readdir-glob/index.js (index.js:120:1)
    at __require (chunk-J43GMYXM.js?v=5acb6c3b:11:50)
    at node_modules/archiver/lib/core.js (core.js:9:12)
    at __require (chunk-J43GMYXM.js?v=5acb6c3b:11:50)
    at node_modules/archiver/index.js (index.js:8:16)
    at __require (chunk-J43GMYXM.js?v=5acb6c3b:11:50)
    at node_modules/to-spreadsheet/lib/generate-excel.js (generate-excel.js:16:18)
    at __require (chunk-J43GMYXM.js?v=5acb6c3b:11:50)
    at node_modules/to-spreadsheet/lib/index.js (index.js:4:26)
    at __require (chunk-J43GMYXM.js?v=5acb6c3b:11:50)

This works fine on CLI based node project. But when I try to call generateExcel method from to-spreadsheet I get this error. This library is using archiver under the hood.

How can I resolve this issue?

@Nitroxone
Copy link

Hi,

Same error here, on a Nuxt3 project while trying to simply import archiver in a component.
Tried both :
import { archiver } as 'archiver'
and
import * as archiver from 'archiver'

But none seem to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants