Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Cannot find module 'babel-runtime/regenerator' after upgrade #59

Closed
JounQin opened this issue Feb 4, 2017 · 7 comments
Closed

Cannot find module 'babel-runtime/regenerator' after upgrade #59

JounQin opened this issue Feb 4, 2017 · 7 comments

Comments

@JounQin
Copy link

JounQin commented Feb 4, 2017

Should it be a dependency or peerDependency of rollup-plugin-vue inside?

@znck
Copy link
Member

znck commented Feb 5, 2017

Can you share your package.json and rollup.config.js?

@JounQin
Copy link
Author

JounQin commented Feb 5, 2017

package.json :

{
  "name": "vue-qrious",
  "version": "0.0.3",
  "description": "a vue component of generating qrcode with `qrious`",
  "main": "dist/vue-qrious",
  "repository": "[email protected]:JounQin/vue-qrious.git",
  "author": "JounQin <[email protected]>",
  "license": "MIT",
  "scripts": {
    "dev": "rollup -c --watch",
    "build": "rollup -c",
    "build:prod": "cross-env NODE_ENV=production yarn build",
    "dist": "yarn build && yarn build:prod"
  },
  "dependencies": {
    "qrious": "^2.2.0"
  },
  "devDependencies": {
    "babel-runtime": "^6.22.0",
    "cross-env": "^3.1.4",
    "rollup": "^0.41.4",
    "rollup-plugin-buble": "^0.15.0",
    "rollup-plugin-uglify": "^1.0.1",
    "rollup-plugin-vue": "^2.3.0-beta.1",
    "rollup-watch": "^3.2.2"
  }
}

rollup.config.js :

import buble from 'rollup-plugin-buble'
import vue from 'rollup-plugin-vue'
import uglify from 'rollup-plugin-uglify'

const pkg = require('./package.json')

const NODE_ENV = process.env.NODE_ENV || 'development'

const isProd = NODE_ENV === 'production'

const plugins = [vue({
  compileTemplate: true
}), buble()]

isProd && plugins.push(uglify({
  output: {
    comments: true
  }
}))

export default {
  banner: `/*!
 * ${pkg.name} ${pkg.description}
 * Version ${pkg.version}
 * Copyright (C) 2017 JounQin <[email protected]>
 * Released under the MIT license
 *
 * Github: https://github.com/JounQin/vue-qrious
 */`,
  entry: 'lib/index.vue',
  dest: `dist/vue-qrious${isProd ? '.min' : ''}.js`,
  plugins,
  format: 'umd',
  external: ['qrious'],
  globals: {
    qrious: 'QRious'
  },
  moduleId: 'vue-qrious',
  moduleName: 'VueQrious'
}

I add babel-runtime in my package.json after I upgrade rollup-plugin-vue.

@znck
Copy link
Member

znck commented Feb 5, 2017

Thanks @JounQin

I'll fix it tomorrow.

@znck
Copy link
Member

znck commented Feb 5, 2017

znck added a commit that referenced this issue Feb 7, 2017
@znck znck closed this as completed in 145fdfe Feb 7, 2017
@znck
Copy link
Member

znck commented Feb 7, 2017

^ Released Beta 2

@JounQin
Copy link
Author

JounQin commented Feb 7, 2017

@znck could not find module 'merge-options'😂

@znck
Copy link
Member

znck commented Feb 7, 2017

On it! 😑

znck added a commit that referenced this issue Feb 27, 2017
* 📝 TODO: Add usage guidelines

* Fix image position

* 💩 Add less support

* Refactoring

* Choose minimal defaults

* Add missing dependency

Fixes #59

* CSS source maps

* Add script in logs

* Allow custom injections & script processors

* Add coffee support
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

2 participants