Skip to content

Error when passing path to javascript config file via '--config' flag #480

@bwroblewski

Description

@bwroblewski

I receive following error when I provide path to javascript config file via --config flag, for example:
webfont --config path\to\webfont\config\webfont.js

Error: Could not dynamically require "path\to\webfont\config\webfont.js". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.
    at commonjsRequire (C:\Users\<user>\AppData\Roaming\nvm\v12.22.1\node_modules\webfont\dist\cli.js:255:8)
    at importFresh$1 (C:\Users\<user>\AppData\Roaming\nvm\v12.22.1\node_modules\webfont\dist\cli.js:4173:9)
    at loadJs (C:\Users\<user>\AppData\Roaming\nvm\v12.22.1\node_modules\webfont\dist\cli.js:4181:18)
    at Explorer.loadFileContent (C:\Users\<user>\AppData\Roaming\nvm\v12.22.1\node_modules\webfont\dist\cli.js:4592:12)
    at C:\Users\<user>\AppData\Roaming\nvm\v12.22.1\node_modules\webfont\dist\cli.js:4614:21

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