Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

JavaScript package requires plugins key in config #20

Closed
mvsde opened this issue Feb 7, 2022 · 0 comments
Closed

JavaScript package requires plugins key in config #20

mvsde opened this issue Feb 7, 2022 · 0 comments

Comments

@mvsde
Copy link
Member

mvsde commented Feb 7, 2022

Using @factorial/stack-javascript version 0.6.4 without any configuration throws an error:

.factorialrc.js

module.exports = {
  use: [
    require("@factorial/stack-javascript"),
  ],
};

Error stack trace

$ …/node_modules/.bin/factorial build --only js

Creating build…
…/node_modules/@factorial/stack-javascript/lib/build.js:22
    "@rollup/plugin-babel": userPlugins["@rollup/plugin-babel"] || {},
                                       ^

TypeError: Cannot read properties of undefined (reading '@rollup/plugin-babel')
    at getPlugins (…/node_modules/@factorial/stack-javascript/lib/build.js:22:40)
    at …/node_modules/@factorial/stack-javascript/lib/build.js:152:25
    at Array.forEach (<anonymous>)
    at …/node_modules/@factorial/stack-javascript/lib/build.js:151:21
    at Array.forEach (<anonymous>)
    at Object.buildJS [as task] (…/node_modules/@factorial/stack-javascript/lib/build.js:143:13)
    at …/node_modules/@factorial/stack-core/lib/tasks/build.js:110:30
    at Array.forEach (<anonymous>)
    at build (…/node_modules/@factorial/stack-core/lib/tasks/build.js:109:13)
    at run (…/node_modules/@factorial/stack-core/index.js:133:34)
    at core (…/node_modules/@factorial/stack-core/index.js:14:9)
    at Object.<anonymous> (…/node_modules/@factorial/stack-core/bin/index.js:2:14)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
@mvsde mvsde changed the title JavaScript package requires plugins in config JavaScript package requires plugins key in config Feb 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant