Comments (6)
It looks like the issue is in the release.
Please remember that when you build your project (when you package it) all the packages that you have in your package.json in "dependencies" will be served, while those that you have manually installed using npm install won't be resolved (even those that are in devDependencies).
Can you please post your package.json and the packages you are using? the issue is likely there.
from angular-electron.
It's the same as in this repo, I didn't install any package. I just removed the component about this bug
In any case here the package.json file
"name": "angular2-electron",
"version": "0.0.0",
"description": "Angular 2 with Electron and Webpack",
"main": "main.js",
"scripts": {
"watch": "npm run watch:dev",
"watch:dev": "webpack --watch --progress --profile",
"build": "npm run build:dev",
"build:dev": "webpack --progress --profile",
"package": "node package.js",
"package-all": "npm run package -- --all",
"electron": "electron .",
"webpack-test": "webpack --config webpack.test.js --progress --profile",
"test": "karma start"
},
"repository": {
"type": "git",
"url": "https://github.com/joaogarin/angular2-electron.git"
},
"author": "joaogarin <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/joaogarin/angular2-electron/issues"
},
"homepage": "",
"dependencies": {
"@angular/animations": "^4.1.0",
"@angular/common": "^4.1.0",
"@angular/compiler": "^4.1.0",
"@angular/core": "^4.1.0",
"@angular/forms": "^4.1.0",
"@angular/http": "^4.1.0",
"@angular/material": "^2.0.0-beta.4",
"@angular/platform-browser": "^4.1.0",
"@angular/platform-browser-dynamic": "^4.1.0",
"@angular/platform-server": "^4.1.0",
"@angular/router": "^4.1.0",
"@ngrx/core": "^1.2.0",
"@ngrx/store": "^2.2.1",
"copy-webpack-plugin": "^4.0.1",
"core-js": "^2.4.1",
"electron": "^1.4.3",
"hammerjs": "^2.0.8",
"rxjs": "^5.2.0",
"webpack-target-electron-renderer": "^0.4.0",
"zone.js": "^0.8.5"
},
"devDependencies": {
"@types/hammerjs": "^2.0.33",
"@types/jasmine": "^2.2.34",
"@types/moment-timezone": "^0.2.32",
"@types/node": "^7.0.1",
"@types/source-map": "^0.5.0",
"@types/uglify-js": "^2.0.27",
"@types/webpack": "^2.0.0",
"angular2-template-loader": "^0.6.0",
"awesome-typescript-loader": "^3.0.0-beta.18",
"codelyzer": "^3.0.0",
"css-loader": "^0.28.0",
"electron-packager": "^8.1.0",
"es6-promise-loader": "^1.0.1",
"extract-text-webpack-plugin": "^2.0.0",
"file-loader": "^0.11.0",
"imports-loader": "^0.7.0",
"istanbul-instrumenter-loader": "^2.0.0",
"jasmine-core": "^2.4.1",
"json-loader": "^0.5.4",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage": "^1.0.0",
"karma-jasmine": "^1.0.2",
"karma-mocha-reporter": "^2.0.0",
"karma-phantomjs-launcher": "^1.0.0",
"karma-remap-coverage": "^0.1.4",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "2.0.2",
"node-sass": "^4.0.0",
"phantomjs-polyfill": "0.0.2",
"phantomjs-prebuilt": "^2.1.7",
"raw-loader": "0.5.1",
"reflect-metadata": "0.1.10",
"remap-istanbul": "^0.9.0",
"rimraf": "^2.5.2",
"sass-loader": "^6.0.1",
"source-map-loader": "^0.2.1",
"style-loader": "^0.17.0",
"svg-url-loader": "^2.0.0",
"ts-helpers": "^1.1.1",
"tsconfig-lint": "^0.12.0",
"tslint": "^5.0.0",
"tslint-loader": "^3.2.0",
"typescript": "~2.2.0",
"url-loader": "^0.5.7",
"webpack": "2.3.3",
"webpack-dev-middleware": "^1.10.0",
"webpack-dev-server": "2.4.3"
},
"engines": {
"node": ">= 4.2.1 <= 6",
"npm": ">= 3"
}
}
from angular-electron.
Did you just remove the md-slide-toggle and ran package? I did the same and it's working perfectly in my case (MacOSx sierra) (and in windows aswell).
Mind if I ask you to tell whether you have added / you are using some other modules other than the ones in the examples?
from angular-electron.
Hello all,
Sorry was off a long time on vacations but will take a look into this issue. thanks for all the feedback here, will try to get a solution today
from angular-electron.
Hello,
So, Sorry this was my bad. But was actually a simple one. The problem is I was importing the
MdSlideToggle
(directive)
as if it was a module, but what should be imported is :
MdSlideToggleModule
The fix is here : 58c90ab
Thanks for the feedback I will close it now;)
from angular-electron.
I'm so sorry, but I had the same error.
I get this error running the EXE file of the app.
Instead running npm run electron
command everythings work fine, also the md-slider.
from angular-electron.
Related Issues (20)
- Fresh install Build error HOT 5
- error in windows HOT 2
- packaget the application for all Platforms HOT 5
- MacOs Sierra "npm run build.dev" failure caused by webpack HOT 8
- Windows Installer and AUto updater REquest HOT 2
- .SASS issues with @angular/material new update. HOT 2
- Angular loadChildren routing not considered with webpack HOT 3
- Firebase Storage ? HOT 2
- File to import not found or unreadable: @angular/material/core/theming/all-theme. HOT 6
- Issue with Material Tabs: must include BrowserAnimationsModule HOT 3
- How can I add global scss ? HOT 6
- Angular Material theme doesn't work HOT 1
- Friend System HOT 1
- There is an error,please add a @NgModule annotation. HOT 2
- Packaging error (re-open) HOT 6
- Module Not Found HOT 1
- package @angular/cdk is needed. HOT 2
- #error "npm run webpack-test"
- Modules not found - Replace
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-electron.