Skip to content

Astroで使用した際のerror #22

@hashibadaiki

Description

@hashibadaiki
 error   Named export 'createClient' not found. The requested module 'microcms-ts-sdk' is a CommonJS module, which may not support all module.exports as named exports.
  CommonJS modules can always be imported via the default export, for example using:
  
  import pkg from 'microcms-ts-sdk';
  const { createClient } = pkg;

いったん

  import pkg from 'microcms-ts-sdk';
  const { createClient } = pkg;

で対応できたのですが、内容を見れていないので備忘録的に残しておきます。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions