I'm currently facing an issue while using webpack to load dependencies. Whenever I execute the npm run dev
command, I encounter the following error:
Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: D:\www\playing-with-texture-projection-in-three-js\src\lib\WebGLApp.js: Unexpected character '#' ; export default class WebGLApp { #updateListeners = [] #tmpTarget = new THREE.Vector3() #rafID #lastTime constructor({ background = '#000', backgroundAlpha = 1, fov = 45, near = 0.01, far = 100, ...options } = {}) { this.rend ....... .......
I am working with plain JavaScript along with some libraries. Can anyone help me identify what I might be missing?