question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strange Lines on top on build/index.js file

See original GitHub issue

I have created my vue plugin but there are errors when I built with bili, these lines appear on top of the build/index.js file

/*!
 * vue-easy-printer v1.0.0
 * (c) loicgeek
 * Released under the MIT License.
 */
'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var __vue_normalize__ = _interopDefault(require('F:PERSONNALue-easy-printer
ode_modules
ollup-plugin-vue
untime
ormalize.js'));
var __vue_create_injector__ = _interopDefault(require('F:PERSONNALue-easy-printer
ode_modules
ollup-plugin-vue
untimerowser.js'));

that is my package.json file

  "name": "vue-easy-printer",
  "version": "1.0.0",
  "private": false,
  "description": "The Best Vue Plugin To convert Html page, Components to pdf",
  "main": "./dist/index.js",
  "keywords": [
    "Vuejs",
    "html",
    "pdf"
  ],
  "files": [
    "dist/*"
  ],
  "scripts": {
    "build": "bili --name index --plugin vue "
  },
  "author": "loicgeek",
  "license": "MIT",
  "devDependencies": {
    "bili": "^4.8.1",
    "rollup-plugin-vue": "^5.1.2",
    "vue-template-compiler": "^2.6.10"
  }
}

And my bili.config.js file

module.exports = {
  banner: true,
  output: {
    extractCSS: false,
  },
  plugins: {
    vue: {
      css: true
    }
  }
}; 

To run the build process , i ran :

 npx bili --bundle-node-modules

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
johannes-zcommented, Nov 12, 2019

rollup-plugin-vue is broken in version 5.1.2. Version 5.1.1 works fine.

1reaction
cannapcommented, Dec 3, 2019

ah lol i trought its built in

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Strange Create-React-App Heroku Error - Cannot GET
Ahhh! I think I see the problem lol. You're not serving the index.html file from your express server. paste this code into your...
Read more >
Error in create new app. · Issue #1639 · infinitered/ignite - GitHub
anyway, i have a stupid workaround. in file %USERPROFILE%\AppData\Roaming\npm\node_modules\ignite-cli\build\commands\new.js on line 90 ...
Read more >
Bundling and Building with Parcel - Beginner JavaScript
The first thing we need is a package.json. A package.json is a file that contains information about your dependencies, what scripts you have...
Read more >
How to Create Index.js File in Node? - KnowledgeHut
In this article, you will learn how to create an index.js file using Node, node index.js command, and examples. So, if you're ready, ......
Read more >
Surviving the TypeScript Ecosystem — Part 4 - Medium
DefinitelyTyped in a community-sourced repository of type definition files. If you are trying to use a JavaScript library in your TypeScript code there...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found