Skip to content

Version 14 - Import no longer working #1584

Open
@tmcconechy

Description

@tmcconechy

**If you're reporting a bug, please include input code, output documentation,
I upgraded from 13.2.5 to 14.0.1 but i cant figure out how to import the node api anymore. This is what i get:

med 'default'
file:///Users/tim.mcconechy/Dev/enterprise/scripts/rollup-plugins/deprecation-notice.js:4
import documentation from 'documentation';
       ^^^^^^^^^^^^^
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
    at ModuleJob.run (node:internal/modules/esm/module_job:189:5)
    at async Promise.all (index 0)
    at ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at importModuleDynamicallyWrapper (node:internal/vm/module:438:15)
    at getConfigFileExport (/Users/tim.mcconechy/Dev/enterprise/node_modules/rollup/dist/shared/loadConfigFile.js:432:17)
    at Object.loadConfigFile (/Users/tim.mcconechy/Dev/enterprise/node_modules/rollup/dist/shared/loadConfigFile.js:391:59)
    at getConfigs (/Users/tim.mcconechy/Dev/enterprise/node_modules/rollup/dist/bin/rollup:1680:39)
    at runRollup (/Users/tim.mcconechy/Dev/enterprise/node_modules/rollup/dist/bin/rollup:1657:43)

So seems import documentation from 'documentation'; is no longer valid? How can i do this now?

  • What version of documentation.js are you using?:
    14.0.1

  • How are you running documentation.js (on the CLI, Node.js API, Grunt, other?):
    Node

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions