Skip to content

ESM plugins do not work with begin dev #154

@ryanbethel

Description

@ryanbethel

ESM plugins don't work with the Begin CLI using begin dev. They do, however, work when using sandbox directly.

Steps to reproduce:
Using @brianleroux 's S3 upload repo at https://github.com/brianleroux/enhance-example-s3-upload .

  1. clone the repo git clone https://github.com/brianleroux/enhance-example-s3-upload.git
  2. install deps npm i
  3. run begin dev
  4. install sandbox npm i @architect/sandbox
  5. run sandbox npx sandbox

You should see the following error when running begin dev but no error running npx sandbox:

Error: Plugin error:
- Unable to load plugin 's3': Invalid host defined options
    at getPluginModules (/snapshot/cli/node_modules/@architect/inventory/src/config/pragmas/plugins.js)
    at getPluginModulesCallbackified (node:util:306:5)
    at architectInventory (/snapshot/cli/node_modules/@architect/inventory/src/index.js)
    at action (/snapshot/cli/src/commands/dev/index.js)
    at runCommand (/snapshot/cli/src/commands/index.js)
    at begin (/snapshot/cli/src/index.js)
    at Object.<anonymous> (/snapshot/cli/src/index.js)
    at Module._compile (pkg/prelude/bootstrap.js:1926:22)
    at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
➜  enhance-example-s3-upload git:(main) ✗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions