Skip to content

Not working in babel 7 #6

@florianbepunkt

Description

@florianbepunkt

this preset is not compatible with babel 7 anymore. It produces the following error msg:

 Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/florian/Github Repositories/cm-indesign-scripts/node_modules/babel-preset-extendscript/src/index.js
        at createDescriptor (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/config-descriptors.js:178:11)
        at items.map (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
        at Array.map (<anonymous>)
        at createDescriptors (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
        at createPresetDescriptors (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
        at presets (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/config-descriptors.js:47:19)
        at mergeChainOpts (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/config-chain.js:315:26)
        at /Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/config-chain.js:278:7
        at buildRootChain (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/config-chain.js:118:22)
        at loadPrivatePartialConfig (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/partial.js:57:55)
        at Object.loadPartialConfig (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/@babel/core/lib/config/partial.js:82:18)
        at Object.<anonymous> (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/babel-loader/lib/index.js:82:26)
        at Generator.next (<anonymous>)
        at step (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/babel-loader/lib/index.js:3:221)
        at _next (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/babel-loader/lib/index.js:3:409)
        at /Users/florian/Github Repositories/cm-indesign-scripts/node_modules/babel-loader/lib/index.js:3:477
        at new Promise (<anonymous>)
        at Object.<anonymous> (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/babel-loader/lib/index.js:3:97)
        at Object.loader (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/babel-loader/lib/index.js:36:18)
        at Object.<anonymous> (/Users/florian/Github Repositories/cm-indesign-scripts/node_modules/babel-loader/lib/index.js:31:12)

Any help how to fix this and make it work for babel 7 is appreciated.

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