Error: Transform failed with 1 error:
virtual-main-client.ts?client:6:8: ERROR: Syntax error "m"
at failureErrorWithLog (C:\Users\aaa\Desktop\Metaverse\my-rpg-game\node_modules\esbuild\lib\main.js:1636:15)
at C:\Users\aaa\Desktop\Metaverse\my-rpg-game\node_modules\esbuild\lib\main.js:837:29
at responseCallbacks.<computed> (C:\Users\aaa\Desktop\Metaverse\my-rpg-game\node_modules\esbuild\lib\main.js:697:9)
at handleIncomingPacket (C:\Users\aaa\Desktop\Metaverse\my-rpg-game\node_modules\esbuild\lib\main.js:752:9)
at Socket.readFromStdout (C:\Users\aaa\Desktop\Metaverse\my-rpg-game\node_modules\esbuild\lib\main.js:673:7)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.Readable.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
errors: [
{
detail: undefined,
id: '',
location: {
column: 8,
file: 'virtual-main-client.ts?client',
length: 0,
line: 6,
lineText: "import \\main\\characters\\characters_ts from '.\\main\\characters\\characters.ts'",
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'Syntax error "m"'
}
],
warnings: [],
frame: '\n' +
'\x1B[33mSyntax error "m"\x1B[39m\n' +
'4 | \n' +
'5 | \n' +
"6 | import \\main\\characters\\characters_ts from '.\\main\\characters\\characters.ts'\n" +
' | ^\n' +
'7 | \n' +
'8 | \n',
loc: {
column: 8,
file: 'virtual-main-client.ts?client',
length: 0,
line: 6,
lineText: "import \\main\\characters\\characters_ts from '.\\main\\characters\\characters.ts'",
namespace: '',
suggestion: ''
},
plugin: 'vite:esbuild',
id: 'virtual-main-client.ts?client',
pluginCode: '\n' +
" import { RpgClient, RpgModule } from '@rpgjs/client'\n" +
' \n' +
' \n' +
' \n' +
"import \\main\\characters\\characters_ts from '.\\main\\characters\\characters.ts'\n" +
' \n' +
' \n' +
'\n' +
' \n' +
' \\main\\characters\\characters_ts.images = {\n' +
' "female": "\\\\main\\characters\\female.png",\n' +
'"hero": "\\\\main\\characters\\hero.png",\n' +
'\n' +
' }\n' +
' \\main\\characters\\characters_ts.prototype.width = 96\n' +
' \\main\\characters\\characters_ts.prototype.height = 128\n' +
' \n' +
' \n' +
' @RpgModule<RpgClient>({ \n' +
' spritesheets: [\n' +
' \\main\\characters\\characters_ts\n' +
' ],\n' +
' sprite: {},\n' +
' \n' +
' scenes: {\n' +
' \n' +
' },\n' +
' gui: [],\n' +
' sounds: []\n' +
' })\n' +
' export default class RpgClientModuleEngine {}\n' +
I'm getting this error when i run npm run dev