Skip to content

Named export 'postprocess' not found.  #9

@pzwwei

Description

@pzwwei

import pkg from 'file:///Users/shashou/Downloads/nuxt3-tailwind-kit/node_modules/micromark/lib/postprocess.js';
const { postprocess } = pkg;

import { postprocess } from 'node_modules/micromark/lib/postprocess.js';
^^^^^^^^^^^
SyntaxError: Named export 'postprocess' not found. The requested module 'node_modules/micromark/lib/postprocess.js' 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 'node_modules/micromark/lib/postprocess.js';
const { postprocess } = pkg;

at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)

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