Open ellioseven opened 4 years ago
I'm getting the same error after updating to Next 9.1.
But I get different errors when I run test
or test --watch
with test
with test --watch
I also got error in Next 9.1, but mine is: TypeError: LoadableComponent.preload is not a function
. Temporarily, I solved it by mocking next-server/dynamic
and next/dynamic
. Don't know why the error occurred while in line 35 (index.js
) already prevented it. :thinking:
jest.mock('next-server/dynamic', () => {
return jest.fn(() => 'Dynamic');
});
jest.mock('next/dynamic', () => {
return jest.fn(() => 'Dynamic');
});
I am getting the following error when attempting to dynamically load within a babel compiled component:
The compiled contents looks like so:
I am wondering if this package supports this scenario?