DEV Community

Discussion on: React Splide with Gatsby: Top Tip

Collapse
 
difaananda40 profile image
M Difa Ananda

Hi Jamie, thanks for the tutorial!
But i follow the step above, and it seems the errors still appear.
Do you have any idea?

Collapse
 
jamiebradley profile image
Jamie Bradley

Oh that's not good (and slightly awkward 😬) which of the errors are you still getting? I'm presuming you mean:

WebpackError: ReferenceError: self is not defined
Enter fullscreen mode Exit fullscreen mode

Let me know. I'm happy to have a look if you want share the code with me, maybe DM me on Twitter(@jamiebradley234)?

Collapse
 
difaananda40 profile image
M Difa Ananda

Here's my code pastebin.com/m4cB3Rec
Btw, I can't send the dm to your Twitter.

Thread Thread
 
jamiebradley profile image
Jamie Bradley

Thanks, can you send me your twitter handler please and I'll try reaching out to you over Twitter. I've got some questions but I don't want to spam the thread 😂

Thread Thread
 
difaananda40 profile image
M Difa Ananda
Thread Thread
 
jamiebradley profile image
Jamie Bradley • Edited

Thanks for going through this with me on Twitter! For everyone else's reference the change was to update object in the rules array from:

{
  test: /@splidejs\/react-splide/,
  use: loaders.null(),
}
Enter fullscreen mode Exit fullscreen mode

to

{
  test: /@splidejs/,
  use: loaders.null(),
}
Enter fullscreen mode Exit fullscreen mode

I have updated the post accordingly!