Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 14 - Import no longer working #1584

Open
tmcconechy opened this issue Dec 23, 2022 · 0 comments
Open

Version 14 - Import no longer working #1584

tmcconechy opened this issue Dec 23, 2022 · 0 comments

Comments

@tmcconechy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant