remotion-dev / remotion

🎥 Make videos programmatically with React
https://remotion.dev
Other
20.86k stars 1.05k forks source link

`UnhandledSchemeError: Reading from "node:path" in Webpack 5 with Remotion` #4546

Closed JoelOnyedika closed 3 days ago

JoelOnyedika commented 3 days ago

Creating a clear and detailed bug report on GitHub increases the chances of receiving help. Here's how you can structure your bug report for the issue you're encountering:


Title

UnhandledSchemeError: Reading from "node:path" in Webpack 5 with Remotion


Body

1. Describe the Bug

Provide a concise description of the issue:

When running a React project with Remotion, I encounter the following error during the build:

Module build failed: UnhandledSchemeError: Reading from "node:path" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.

Additionally, errors related to missing Node.js polyfills appear, such as:

  • Module not found: Error: Can't resolve 'fs'
  • Module not found: Error: Can't resolve 'path '

I am using a project setup that does not have an explicit Webpack configuration (likely using CRA or similar tooling).


2. Steps to Reproduce

Detail steps to replicate the issue:

  1. aInstall Remotion for react using npx create-video@latest --tiktok
  2. Modify one of the template files and import fs and path in it
  3. Run the dev command (e.g., npm run dev).
  4. Observe the terminal nuke itself.

3. Expected Behavior

Explain what you expected to happen:

The project should build successfully without errors related to node:path, fs, or other Node.js modules. and i should see a studio when i go to the hosted url


4. Screenshots/Logs

Include relevant error logs:

C:\Users\USER\Documents\Coding\javascript\videomaker>npm run dev

> my-video@1.0.0 dev
> remotion studio

Server ready - Local: http://localhost:3000, Network: http://192.168.0.136:3000
ERROR in ./src/helpers/index.ts 6:0-20
Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\src\helpers'
ERROR in ./src/helpers/index.ts 7:0-24
Module not found: Error: Can't resolve 'path' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\src\helpers'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/download-whisper-model.js 31:26-39
Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/download-whisper-model.js 32:31-46
Module not found: Error: Can't resolve 'path' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/install-whisper-cpp.js 31:24-48
Module not found: Error: Can't resolve 'child_process' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/install-whisper-cpp.js 32:26-39
Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/install-whisper-cpp.js 33:29-42
Module not found: Error: Can't resolve 'os' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "os": require.resolve("os-browserify/browser") }'
        - install 'os-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "os": false }
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/install-whisper-cpp.js 34:31-46
Module not found: Error: Can't resolve 'path' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
ERROR in ./node_modules/asn1/lib/ber/reader.js 3:13-30
Module not found: Error: Can't resolve 'assert' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\asn1\lib\ber'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
ERROR in ./node_modules/asn1/lib/ber/writer.js 3:13-30
Module not found: Error: Can't resolve 'assert' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\asn1\lib\ber'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
ERROR in ./node_modules/assert-plus/assert.js 4:13-30
Module not found: Error: Can't resolve 'assert' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\assert-plus'
Did you mean './assert'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
ERROR in ./node_modules/assert-plus/assert.js 5:13-37
Module not found: Error: Can't resolve 'stream' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\assert-plus'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
        - install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "stream": false }
ERROR in ./node_modules/assert-plus/assert.js 6:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\assert-plus'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/aws-sign2/index.js 22:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\aws-sign2'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/aws-sign2/index.js 23:12-32
Module not found: Error: Can't resolve 'url' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\aws-sign2'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "url": require.resolve("url/") }'
        - install 'url'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "url": false }
ERROR in ./node_modules/aws4/aws4.js 2:10-24

ERROR in ./node_modules/safer-buffer/safer.js 5:13-30
Module not found: Error: Can't resolve 'buffer' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\safer-buffer'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
        - install 'buffer'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "buffer": false }
ERROR in ./node_modules/sshpk/lib/certificate.js 8:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/certificate.js 12:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/sshpk/lib/dhe.js 10:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/ed-compat.js 9:13-30
Module not found: Error: Can't resolve 'stream' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
        - install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "stream": false }
ERROR in ./node_modules/sshpk/lib/ed-compat.js 10:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/sshpk/lib/errors.js 4:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/sshpk/lib/fingerprint.js 8:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/formats/openssh-cert.js 17:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib\formats'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/formats/pem.js 10:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib\formats'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/formats/putty.js 13:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib\formats'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/formats/ssh-private.js 14:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib\formats'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/identity.js 7:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/identity.js 11:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/sshpk/lib/key.js 7:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/private-key.js 8:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/private-key.js 12:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/sshpk/lib/signature.js 8:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/sshpk/lib/utils.js 28:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\sshpk\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/string_decoder/node_modules/safe-buffer/index.js 2:13-30
Module not found: Error: Can't resolve 'buffer' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\string_decoder\node_modules\safe-buffer'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
        - install 'buffer'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "buffer": false }
ERROR in ./node_modules/tough-cookie/lib/cookie.js 32:10-24
Module not found: Error: Can't resolve 'net' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tough-cookie\lib'
ERROR in ./node_modules/tough-cookie/lib/cookie.js 33:15-35
Module not found: Error: Can't resolve 'url' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tough-cookie\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "url": require.resolve("url/") }'
        - install 'url'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "url": false }
ERROR in ./node_modules/tough-cookie/lib/cookie.js 34:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tough-cookie\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/tough-cookie/lib/memstore.js 35:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tough-cookie\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/tunnel-agent/index.js 3:10-24
Module not found: Error: Can't resolve 'net' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tunnel-agent'
ERROR in ./node_modules/tunnel-agent/index.js 4:10-24
Module not found: Error: Can't resolve 'tls' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tunnel-agent'
ERROR in ./node_modules/tunnel-agent/index.js 5:11-26
Module not found: Error: Can't resolve 'http' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tunnel-agent'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "http": require.resolve("stream-http") }'
        - install 'stream-http'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "http": false }
ERROR in ./node_modules/tunnel-agent/index.js 6:12-28
Module not found: Error: Can't resolve 'https' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tunnel-agent'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "https": require.resolve("https-browserify") }'
        - install 'https-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "https": false }
ERROR in ./node_modules/tunnel-agent/index.js 8:13-30
Module not found: Error: Can't resolve 'assert' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tunnel-agent'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
ERROR in ./node_modules/tunnel-agent/index.js 9:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tunnel-agent'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/verror/lib/verror.js 6:15-30
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\verror\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in node:child_process
Module build failed: UnhandledSchemeError: Reading from "node:child_process" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:983:10
    at Hook.eval [as callAsync] (eval at create (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tapable\lib\Hook.js:18:14)
    at Object.processResource (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:979:8)
    at processResource (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\loader-runner\lib\LoaderRunner.js:220:11)
    at iteratePitchingLoaders (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\loader-runner\lib\LoaderRunner.js:171:10)
    at runLoaders (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\loader-runner\lib\LoaderRunner.js:398:2)
    at NormalModule._doBuild (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:964:3)
    at NormalModule.build (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:1154:15)
    at C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\Compilation.js:1422:12
ERROR in node:fs
Module build failed: UnhandledSchemeError: Reading from "node:fs" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:983:10
    at Hook.eval [as callAsync] (eval at create (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:979:8)
    at processResource (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\loader-runner\lib\LoaderRunner.js:220:11)
    at iteratePitchingLoaders (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\loader-runner\lib\LoaderRunner.js:171:10)
    at runLoaders (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\loader-runner\lib\LoaderRunner.js:398:2)
    at NormalModule._doBuild (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:964:3)
    at NormalModule.build (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:1154:15)
    at C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\Compilation.js:1422:12
    at NormalModule.needBuild (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:1476:32)
ERROR in node:path
Module build failed: UnhandledSchemeError: Reading from "node:path" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:983:10
    at Hook.eval [as callAsync] (eval at create (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:979:8)
    at processResource (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\loader-runner\lib\LoaderRunner.js:220:11)
    at iteratePitchingLoaders (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\loader-runner\lib\LoaderRunner.js:171:10)
    at runLoaders (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\loader-runner\lib\LoaderRunner.js:398:2)
    at NormalModule._doBuild (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:964:3)
    at NormalModule.build (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:1154:15)
    at C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\Compilation.js:1422:12
    at NormalModule.needBuild (C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\webpack\lib\NormalModule.js:1476:32)
Built in 172799ms
Building...
ERROR in ./src/helpers/index.ts 1:0-20
Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\src\helpers'
ERROR in ./src/helpers/index.ts 2:0-24
Module not found: Error: Can't resolve 'path' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\src\helpers'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/download-whisper-model.js 31:26-39
Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/download-whisper-model.js 32:31-46
Module not found: Error: Can't resolve 'path' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/install-whisper-cpp.js 31:24-48
Module not found: Error: Can't resolve 'child_process' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/install-whisper-cpp.js 32:26-39
Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/install-whisper-cpp.js 33:29-42
Module not found: Error: Can't resolve 'os' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "os": require.resolve("os-browserify/browser") }'
        - install 'os-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "os": false }
ERROR in ./node_modules/@remotion/install-whisper-cpp/dist/install-whisper-cpp.js 34:31-46
Module not found: Error: Can't resolve 'path' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\@remotion\install-whisper-cpp\dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
ERROR in ./node_modules/asn1/lib/ber/reader.js 3:13-30
Module not found: Error: Can't resolve 'assert' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\asn1\lib\ber'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
ERROR in ./node_modules/asn1/lib/ber/writer.js 3:13-30
Module not found: Error: Can't resolve 'assert' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\asn1\lib\ber'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to ilback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
        - install 'buffer'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "buffer": false }
ERROR in ./node_modules/delayed-stream/lib/delayed_stream.js 1:13-37
Module not found: Error: Can't resolve 'stream' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\delayed-stream\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
        - install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "stream": false }
ERROR in ./node_modules/delayed-stream/lib/delayed_stream.js 2:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\delayed-stream\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/ecc-jsbn/index.js 1:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\ecc-jsbn'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/extsprintf/lib/extsprintf.js 5:17-34
Module not found: Error: Can't resolve 'assert' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\extsprintf\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
ERROR in ./node_modules/extsprintf/lib/extsprintf.js 6:15-30
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\extsprintf\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/forever-agent/index.js 4:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\forever-agent'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/forever-agent/index.js 5:12-33
Module not found: Error: Can't resolve 'http' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\forever-agent'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "http": require.resolve("stream-http") }'
        - install 'stream-http'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "http": false }
ERROR in ./node_modules/forever-agent/index.js 6:10-24
Module not found: Error: Can't resolve 'net' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\forever-agent'
ERROR in ./node_modules/forever-agent/index.js 7:10-24
Module not found: Error: Can't resolve 'tls' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\forever-agent'
ERROR in ./node_modules/forever-agent/index.js 8:15-37
Module not found: Error: Can't resolve 'https' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\forever-agent'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "https": require.resolve("https-browserify") }'
        - install 'https-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "https": false }
ERROR in ./node_modules/gtts/lib/gTTS.js 5:11-24
Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\gtts\lib'
ERROR in ./node_modules/http-signature/lib/parser.js 4:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\http-signature\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/http-signature/lib/signer.js 4:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\http-signature\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/http-signature/lib/signer.js 5:11-26
Module not found: Error: Can't resolve 'http' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\http-signature\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "http": require.resolve("stream-http") }'
        - install 'stream-http'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "http": false }
ERROR in ./node_modules/http-signature/lib/signer.js 6:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\http-signature\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/http-signature/lib/utils.js 5:11-26
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\http-signature\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/http-signature/lib/verify.js 4:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\http-signature\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
ERROR in ./node_modules/isstream/isstream.js 1:13-30
Module not found: Error: Can't resolve 'stream' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\isstream'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
        - install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "stream": false }
ERROR in ./node_modules/jsprim/lib/jsprim.js 6:15-30
Module not found: Error: Can't resolve 'util' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\jsprim\lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }
ERROR in ./node_modules/mime-types/index.js 16:14-37
Module not found: Error: Can't resolve 'path' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\mime-types'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
ERROR in ./node_modules/oauth-sign/index.js 1:13-30
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\USER\Documents\Coding\javascript\videomaker\node_modules\oauth-sign'

6. Possible Solution

(Optional) Suggest what might be causing the issue or any attempted fixes:

It seems Webpack 5 no longer includes Node.js polyfills by default. Adding resolve.fallback options might resolve this, but since there is no explicit Webpack configuration, I'm unsure how to implement this in the current setup.


7. Additional Context

Mention any additional details:

This error occurs in a fresh install of Remotion with minimal setup. I have not modified any default configurations.
Please i cannot find the webpack config it is just not there i think it was overwritten my remotion or something I just made some simple imports of fs and path and then my entire codebase just freak out.


JonnyBurger commented 3 days ago

It is not possible to access the filesystem from the browser.

Instead, this is how you import assets: https://www.remotion.dev/docs/assets