OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Expected an Assignment or Function and instead saw an expression React [closed]

  • Thread starter Thread starter SSFJHGKJFHG
  • Start date Start date
S

SSFJHGKJFHG

Guest
In my react app, there's a certain js file that's just flooded with these bugs but I have no idea how to stop them. I think it may be due to syntax, but I'm not sure. Here's an example:

Code:
return new Promise((f, h) => {
        c.addEventListener("load", f),
          c.addEventListener("error", () =>
            h(new Error(`Unable to preload CSS for ${o}`)),
          );
      });

<p>In my react app, there's a certain js file that's just flooded with these bugs but I have no idea how to stop them. I think it may be due to syntax, but I'm not sure. Here's an example:</p>
<pre><code>return new Promise((f, h) => {
c.addEventListener("load", f),
c.addEventListener("error", () =>
h(new Error(`Unable to preload CSS for ${o}`)),
);
});
</code></pre>
 

Latest posts

M
Replies
0
Views
1
MusicLovingIndianGirl
M
Q
Replies
0
Views
2
quora question
Q
Top