webfansplz / temir

Vue for interactive command-line apps
MIT License
1k stars 36 forks source link

Can't build example `hi-temir` #17

Open maximilliangeorge opened 1 year ago

maximilliangeorge commented 1 year ago

First of all: super cool framework.

Now: I am trying to build the examples on my machine (MacOS, Node 18), in particular the examples/hi-temir example. npm run dev works fine, but when I try to build using npm run build I get the following error.

Steps to reproduce:

  1. git clone git@github.com:webfansplz/temir.git
  2. cd ./temir/examples/hi-temir
  3. npm install
  4. npm run build
errors: [
    {
      id: '',
      pluginName: '',
      text: 'Expected value for define "__VUE_OPTIONS_API__" to be a string, got boolean instead',
      location: {
        file: '/Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js',
        namespace: 'file',
        line: 299,
        column: 10,
        length: 0,
        lineText: '    throw new Error(`Expected value for ${what}${key !== void 0 ? " " + quote(key) : ""} to be a string, got ${typeof value} instead`);\n' +
          '    at validateStringValue (/Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:299:11)\n' +
          '    at pushCommonFlags (/Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:390:37)\n' +
          '    at flagsForBuildOptions (/Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:424:3)\n' +
          '    at buildOrContextContinue (/Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:1009:9)\n' +
          '    at /Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:983:11',
        suggestion: ''
      },
      notes: [],
      detail: Error: Expected value for define "__VUE_OPTIONS_API__" to be a string, got boolean instead
          at validateStringValue (/Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:299:11)
          at pushCommonFlags (/Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:390:37)
          at flagsForBuildOptions (/Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:424:3)
          at buildOrContextContinue (/Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:1009:9)
          at /Users/maximillian/Development/temir/examples/hi-temir/node_modules/esbuild/lib/main.js:983:11
    }
  ],
  warnings: []
}