0

I'm trying to figure out why my Wordle repo refuses to run smoothly on StackBlitz, even though everything works fine on my IDE's local host.

I can't find an answer for this one unfortunately.

The error occurs when importing the txt file from src/wordBank/wordBank.txt to src/wordBank/Words.js

Link to my project on StackBlitz : https://stackblitz.com/github/shaharmes/wordle-react

Thanks in advance

Shames
  • 21
  • 5
  • You can make it work [that way](https://stackoverflow.com/a/50570949/11154372). And it seems like CRA (react-scripts) giving your component wrong URL to the .txt file. If you want to be able to import .txt files in JS you need to properly setup webpack yourself – rmik Dec 22 '22 at 20:59

0 Answers0