I'm not sure what am I doing wrong, but the point is I can't figure.
Here's my directory structure:
/utils/devServer.js - contains the esbuildDevServer configuration file
/src/app.tsx - my 'app'
/public/dist/index.html - html file exactly as per example
When I run the esbuildDevServer everything goes well... when I try to browse my application I get:
Uncaught SyntaxError: Unexpected token '<' (at app.js:1:1)
Which points to the HTML file <!DOCTYPE html> as far as I know this error could mean it can't find the .js file.
I'm not sure what am I doing wrong, but the point is I can't figure.
Here's my directory structure: /utils/devServer.js - contains the esbuildDevServer configuration file /src/app.tsx - my 'app' /public/dist/index.html - html file exactly as per example
When I run the esbuildDevServer everything goes well... when I try to browse my application I get: Uncaught SyntaxError: Unexpected token '<' (at app.js:1:1)
Which points to the HTML file <!DOCTYPE html> as far as I know this error could mean it can't find the .js file.
Here's my esbuildevserver configuration: const {build} = require("esbuild") const esBuildDevServer = require("esbuild-dev-server")
here is my 'app'
here is my html file
What can i possibly be doing wrong?