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

rollup build is failing with not finding input (v0.10.0-alpha.2) #460

Closed
1 of 5 tasks
thescientist13 opened this issue Dec 30, 2020 · 0 comments · Fixed by #461
Closed
1 of 5 tasks

rollup build is failing with not finding input (v0.10.0-alpha.2) #460

thescientist13 opened this issue Dec 30, 2020 · 0 comments · Fixed by #461
Assignees
Labels
alpha.3 bug Something isn't working CLI P0 Critical issue that should get addressed ASAP v0.10.0

Comments

@thescientist13
Copy link
Member

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

After upgrading to the latest alpha release of Greenwood, getting this error

Error: You must supply options.input to rollup
    at Graph.generateModuleGraph (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood-getting-started/node_modules/rollup/dist/shared/rollup.js:18908:19)
    at async Graph.build (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood-getting-started/node_modules/rollup/dist/shared/rollup.js:18872:9)
    at async rollupInternal (/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood-getting-started/node_modules/rollup/dist/shared/rollup.js:19947:9)
    at async /Users/owenbuckley/Workspace/project-evergreen/repos/greenwood-getting-started/node_modules/@greenwood/cli/src/lifecycles/bundle.js:12:24
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! greenwood-getting-started@1.0.0 build: `greenwood build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the greenwood-getting-started@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/owenbuckley/.npm/_logs/2020-12-30T21_18_46_431Z-debug.log

Details

Some debugging details the following:

module.exports = getRollupConfig = async (compilation) => {
  
  const { scratchDir, outputDir } = compilation.context;

  console.debug('getRollupConfig scratchDir?????????????', `${scratchDir}/**/*.html`);
  console.debug('getRollupConfig outputDir?????????????', `${outputDir}/**/*.html`);

  return [{
    // TODO Avoid .greenwood/ directory, do everything in public/?
    input: `${scratchDir}/**/*.html`,
getRollupConfig scratchDir????????????? /Users/owenbuckley/Workspace/project-evergreen/repos/greenwood-getting-started/.greenwood//**/*.html
getRollupConfig outputDir????????????? /Users/owenbuckley/Workspace/project-evergreen/repos/greenwood-getting-started/public/**/*.html

Looks like there are two // for scratchDir? When removing it, everything is fine again.

This seems to be an issue with npm based projects, since I had this issue in Getting Started, but not www.thegreenhouse.io

@thescientist13 thescientist13 added bug Something isn't working P0 Critical issue that should get addressed ASAP CLI labels Dec 30, 2020
@thescientist13 thescientist13 self-assigned this Dec 30, 2020
@thescientist13 thescientist13 moved this from IN PROGRESS to IN REVIEW in 5 - Architectural Digest Dec 30, 2020
@thescientist13 thescientist13 linked a pull request Dec 30, 2020 that will close this issue
@thescientist13 thescientist13 mentioned this issue Dec 30, 2020
12 tasks
@thescientist13 thescientist13 moved this from IN REVIEW to DONE in 5 - Architectural Digest Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha.3 bug Something isn't working CLI P0 Critical issue that should get addressed ASAP v0.10.0
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant