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

[bug] esbuild startService error when running build #231

Open
heyMP opened this issue Feb 28, 2022 · 1 comment
Open

[bug] esbuild startService error when running build #231

heyMP opened this issue Feb 28, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@heyMP
Copy link

heyMP commented Feb 28, 2022

Package



I believe: @apollo-elements/create

Description

After scaffolding the apollo-elements app using @apollo-elements/create and running a rollup build with npm run build I get an error that of the following:

   npm run build

> apollo-elements-app@1.0.0 build
> run-s build:*


> apollo-elements-app@1.0.0 build:codegen
> graphql-codegen

(node:7717) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
  ✔ Parse configuration
  ✔ Generate outputs

> apollo-elements-app@1.0.0 build:rollup
> rollup -c


index.html → build...
[!] (plugin esbuild) TypeError: esbuild.startService is not a function
TypeError: esbuild.startService is not a function
    at Object.buildStart (/Users/michael/Projects/apollo-elements-test/node_modules/rollup-plugin-esbuild/dist/index.js:81:33)
    at /Users/michael/Projects/apollo-elements-test/node_modules/rollup/dist/shared/rollup.js:22795:37
    at async Promise.all (index 0)
    at rollupInternal (/Users/michael/Projects/apollo-elements-test/node_modules/rollup/dist/shared/rollup.js:23545:9)
    at build (/Users/michael/Projects/apollo-elements-test/node_modules/rollup/dist/bin/rollup:1530:20)
    at runRollup (/Users/michael/Projects/apollo-elements-test/node_modules/rollup/dist/bin/rollup:1675:21)

ERROR: "build:rollup" exited with 1.

Steps To Reproduce

  1. Generate new apollo-elements app npm init @apollo-elements
  2. Answer yes to App
  3. Answer yes to all options
  4. Install dependencies
  5. Then run npm run build

Fix

Upgrading to rollup-plusing-esbuild 3.0.0 fixes this issue: egoist/rollup-plugin-esbuild#209

@heyMP heyMP added the bug Something isn't working label Feb 28, 2022
@bennypowers
Copy link
Member

Can you try again with latest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants