Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Running "rollup:amd" (rollup) task is Aborting Due to Warnings #346

Open
tworkman512 opened this issue Oct 17, 2017 · 3 comments
Open

Running "rollup:amd" (rollup) task is Aborting Due to Warnings #346

tworkman512 opened this issue Oct 17, 2017 · 3 comments

Comments

@tworkman512
Copy link

Not understanding what I'm doing wrong in my Gruntfile.js config.

When I run grunt build, getting the following in my console and the build Aborts:

Running "rollup:amd" (rollup) task
options.entry is deprecated, use options.input
The following options have been renamed — please update your config: moduleName -> name, sourceMap -> sourcemap, sourceMapFile -> sourcemapFile, useStrict -> strict
Warning: bundle.generate(...) now returns a Promise instead of a { code, map } object Use --force to continue.

Aborted due to warnings.

I was able to fix a few of the things it was complaining about, but not sure how to fix this. Here is my config for rollup:

    rollup: {
      amd: {
        dest: 'tmp/js/hopscotch_amd_tmp.js',
        options: {
          format: 'amd',
          id: HOPSCOTCH
        },
        src: 'src/js/hopscotch.js'
      },
      umd: {
        dest: 'tmp/js/hopscotch_umd_tmp.js',
        options: {
          format: 'umd',
          name: HOPSCOTCH
        },
        src: 'src/js/hopscotch.js'
      },
      options: {
        plugins: [
          babel({
            exclude: 'node_modules/**'
          })
        ]
      }
    },

Any help/guidance with this would be much appreciated.

Thanks!

@tworkman512
Copy link
Author

tworkman512 commented Oct 18, 2017

Seeing this in:

Hopscotch Release v0.3.1, which seems to be the latest as of this post.

I'm running:

Node v8.1.2
NPM v5.3.0

How to reproduce:

  1. Clone the project
  2. CD to project directory
  3. Run npm install
  4. Run grunt build
  5. See the warning referenced above and the build then aborts.

What I'm Trying To Do:

I'm trying to run a local instance of Hopscotch, so I can build my own custom on-boarding tour.

@tworkman512
Copy link
Author

I was able to figure out the issue. This version of Hopscotch is using an outdated version of grunt-rollup. Fixed by updating the grunt-rollup package and build now passes.

@tworkman512
Copy link
Author

PR: #347

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