Edit: This has been resolved, this is from the arc...
# typescript
l
Edit: This has been resolved, this is from the arch linux package for pulumi missing a plugin that the official installer includes Anyone know if the docs are outdated for using dynamic providers with typescript? Attempting to create a basic example using the boilerplate from: https://www.pulumi.com/docs/concepts/resources/dynamic-providers fails to run with the following error:
Copy code
Type                               Name              Plan       Info
 +   pulumi:pulumi:Stack                dynamic-test-dev  create     2 messages
     └─ pulumi:providers:pulumi-nodejs  default                      1 error

Diagnostics:
  pulumi:pulumi:Stack (dynamic-test-dev):
    (node:3967888) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    (Use `node --trace-deprecation ...` to show where the warning was created)

  pulumi:providers:pulumi-nodejs (default):
    error: could not find latest version for provider pulumi-nodejs: 404 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-pulumi-nodejs/releases/latest>. If this is a private GitHub repository, try providing a token via the GITHUB_TOKEN environment variable. See: <https://github.com/settings/tokens>
Any ideas?
For additional context, the example I tried running was:
Copy code
import * as pulumi from '@pulumi/pulumi';

export interface MyResourceInputs {
    myStringProp: pulumi.Input<string>;
    myBoolProp: pulumi.Input<boolean>;
}

interface MyResourceProviderInputs {
    myStringProp: string;
    myBoolProp: boolean;
}

class MyResourceProvider implements pulumi.dynamic.ResourceProvider {
    async create(inputs: MyResourceProviderInputs): Promise<pulumi.dynamic.CreateResult> {
        return {id: '12345', outs: {}}
    }
}

class MyResource extends pulumi.dynamic.Resource {
    constructor(name: string, props: MyResourceInputs, opts?: pulumi.CustomResourceOptions) {
        super(new MyResourceProvider(), name, props, opts);
    }
}

new MyResource(
    'foo',
    {
        myBoolProp: true,
        myStringProp: 'test'
    }
)
This has been resolved, this is from the arch linux package for pulumi missing a plugin that the official installer includes