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

Commit

Permalink
Cannot assign to read only property 'exports' of object '#<Object>'
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceG committed Jan 16, 2019
1 parent 5f344ee commit ab2d0e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var webpack = require("webpack");
const VueLoaderPlugin = require("vue-loader/lib/plugin");

module.exports = {
mode: "production",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "../dist"),
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-web-cam",
"version": "1.4.0",
"version": "1.4.1",
"description": "Webcam component for Vuejs applications",
"main": "dist/index.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const install = function(Vue, opts = {}) {
if (install.installed) return;
Vue.component(WebCam.name, WebCam);
};

module.exports = {
WebCam,
install
};
module.exports.default = module.exports;

0 comments on commit ab2d0e2

Please sign in to comment.