Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid define value #1083

Open
2 tasks
GFSKGaming opened this issue Aug 25, 2024 · 1 comment
Open
2 tasks

Invalid define value #1083

GFSKGaming opened this issue Aug 25, 2024 · 1 comment
Labels

Comments

@GFSKGaming
Copy link

GFSKGaming commented Aug 25, 2024

What's happening?
Whenever the bot launches, it immediately halts with these errors.

Logs

npm run start

> muse@2.9.3 start
> npm run env:set-database-url -- tsx src/scripts/migrate-and-start.ts


> muse@2.9.3 env:set-database-url
> tsx src/scripts/run-with-database-url.ts tsx src/scripts/migrate-and-start.ts

(node:23916) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
node:internal/process/esm_loader:108
    internalBinding('errors').triggerUncaughtException(
                              ^

Error: Transform failed with 1 error:
error: Invalid define value (must be an entity name or valid JSON syntax): 'file:///D:/GFSK's%20Music%20Bot/muse/node_modules/dotenv/lib/main.js'
    at failureErrorWithLog (D:\GFSK's Music Bot\muse\node_modules\esbuild\lib\main.js:1624:15)
    at D:\GFSK's Music Bot\muse\node_modules\esbuild\lib\main.js:1413:29
    at D:\GFSK's Music Bot\muse\node_modules\esbuild\lib\main.js:678:9
    at handleIncomingPacket (D:\GFSK's Music Bot\muse\node_modules\esbuild\lib\main.js:775:9)
    at Socket.readFromStdout (D:\GFSK's Music Bot\muse\node_modules\esbuild\lib\main.js:644: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 Readable.push (node:internal/streams/readable:234:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
  errors: [
    {
      detail: undefined,
      id: '',
      location: null,
      notes: [],
      pluginName: '',
      text: "Invalid define value (must be an entity name or valid JSON syntax): 'file:///D:/GFSK's%20Music%20Bot/muse/node_modules/dotenv/lib/main.js'"
    }
  ],
  warnings: []
}

Additional context
This is a fresh install if it matters.

Runtime
I'm running Muse:

  • [✔] Directly from the cloned repository
  • Inside a Docker container
  • Something else (please elaborate)

Versions

  • Muse: v2.93
  • OS: Windows 10 Pro (Build 19041.vb_release.191206-1406)
  • Node.js: v19.3.0
  • ffmpeg: 7.0.2 (I believe)
@TiagoGrosso
Copy link
Contributor

@GFSKGaming did you setup your env file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants