documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Version 14 - Import no longer working

Open tmcconechy opened this issue 2 years ago • 0 comments

**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

tmcconechy avatar Dec 23 '22 16:12 tmcconechy