Skip to content

Multiple issues with vanilla JS project #854

Closed
@IronWarrior

Description

@IronWarrior

Error occurs when running npm run download.

Error: TAR_BAD_ARCHIVE: Unrecognized archive format                                                                                   
    at Unpack.warn (S:\Documents\OpenSource\ffmpeg.wasm\node_modules\tar\lib\warn-mixin.js:21:40)                                     
    at Unpack.warn (S:\Documents\OpenSource\ffmpeg.wasm\node_modules\tar\lib\unpack.js:236:18)                                        
    at Unpack.<anonymous> (S:\Documents\OpenSource\ffmpeg.wasm\node_modules\tar\lib\parse.js:83:14)                                   
    at Unpack.emit (node:events:530:35)                                                                                               
    at [emit] (S:\Documents\OpenSource\ffmpeg.wasm\node_modules\tar\lib\parse.js:313:12)                                              
    at [maybeEnd] (S:\Documents\OpenSource\ffmpeg.wasm\node_modules\tar\lib\parse.js:468:17)                                          
    at [consumeChunk] (S:\Documents\OpenSource\ffmpeg.wasm\node_modules\tar\lib\parse.js:500:21)                                      
    at Unpack.write (S:\Documents\OpenSource\ffmpeg.wasm\node_modules\tar\lib\parse.js:427:25)                                        
    at Unpack.end (S:\Documents\OpenSource\ffmpeg.wasm\node_modules\tar\lib\parse.js:548:14)                                          
    at Pipe.end (S:\Documents\OpenSource\ffmpeg.wasm\node_modules\tar\node_modules\fs-minipass\node_modules\minipass\index.js:75:17) {
  recoverable: false,                                                                                                                 
  file: 'core-mt-0.12.10.tgz',                                                                                                        
  cwd: 'S:/Documents/OpenSource/ffmpeg.wasm/apps/vanilla-app/public/assets/core-mt',                                                  
  code: 'TAR_BAD_ARCHIVE',                                                                                                            
  tarCode: 'TAR_BAD_ARCHIVE'                                                                                                          
}

When investigating, I found I wasn't able to locate a version 0.12.10 for core-mt, making me thing it's the root error. Swapping it to 0.12.9 does resolve this, however when running the project and loading it in Chrome I get the following errors.

Uncaught ReferenceError: exports is not defined
    at index.js:1:728
    at index.js:1:2954
    at index.js:1:197
    at index.js:1:201Understand this errorAI
transcode.html:13 Uncaught ReferenceError: FFmpegUtil is not defined
    at transcode.html:13:29

The former pointing to, in util...index.js.

   Object.defineProperty(exports, "__esModule", {
        value: !0
    }),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions