Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

__webpack_require__(...).context is not a function #64

Open
callmeteus opened this issue Aug 10, 2022 · 1 comment
Open

__webpack_require__(...).context is not a function #64

callmeteus opened this issue Aug 10, 2022 · 1 comment

Comments

@callmeteus
Copy link

I'm trying to port from babel-loader and ts-loader to swc-loader, but everytime require.context is called, it returns undefined.

When printing the require variable, it returns the following module:

function webpackEmptyContext(req) {
	var e = new Error("Cannot find module '" + req + "'");
	e.code = 'MODULE_NOT_FOUND';
	throw e;
}
webpackEmptyContext.keys = () => ([]);
webpackEmptyContext.resolve = webpackEmptyContext;
webpackEmptyContext.id = 5102;
module.exports = webpackEmptyContext;
@alexander-akait
Copy link

@theprometeus sorry for delay, the problems still exists? Can you create reproducible test repo?

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

No branches or pull requests

2 participants