react-preload icon indicating copy to clipboard operation
react-preload copied to clipboard

Cannot import preload

Open Rowleen opened this issue 6 years ago • 2 comments

This is the error that I get when I try to use preload in my project.

(function (exports, require, module, __filename, __dirname) { import _Preload from './Preload';

Rowleen avatar Oct 16 '18 11:10 Rowleen

@Rowleen do you have any more details? What tools are you using (webpack?).

Do you have a test case so I can reproduce?

sambernard avatar Oct 19 '18 22:10 sambernard

I believe this is happening due to SSR, got it working by moving preload require inside react componentDidMount but ideally react-preload would work with SSR

elliottjro avatar Jun 12 '19 17:06 elliottjro