Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行有误404:找不到资源 #1

Open
luozt opened this issue Jun 20, 2016 · 3 comments
Open

运行有误404:找不到资源 #1

luozt opened this issue Jun 20, 2016 · 3 comments

Comments

@luozt
Copy link

luozt commented Jun 20, 2016

把package.json改为这样:

{
  "name": "angular2App",
  "version": "1.0.0",
  "description": "Default template for fis angular 2 app.",
  "main": "index.js",
  "scripts": {
    "release": "fis3 release",
    "server.start": "fis3 server start",
    "server.stop": "fis3 server stop",
    "server.clean": "fis3 server clean",
    "server.clear": "fis3 server stop && fis3 server clean",
    "start": "npm run server.start && npm run release",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/fis-scaffold/angular2-app.git"
  },
  "keywords": [
    "fis",
    "scaffold"
  ],
  "author": "fex",
  "license": "BSD",
  "bugs": {
    "url": "https://github.com/fis-scaffold/angular2-app/issues"
  },
  "homepage": "https://github.com/fis-scaffold/angular2-app",
  "dependencies": {
    "fis3": "^3.4.13",
    "fis3-hook-system": "^0.1.1",
    "fis3-parser-typescript": "^0.1.2",
    "fis3-postpackager-loader": "^1.3.6"
  }
}

npm i然后运行npm start后,打开浏览器页面报2个404错误:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:8080/angular2/angular2.js

Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:8080/angular2/angular2

@luozt
Copy link
Author

luozt commented Jun 20, 2016

建议更新项目,使得fis3支持angular2的rc版的引入和编译,做一个比较完备的angular2的脚手架

@2betop
Copy link
Contributor

2betop commented Jun 30, 2016

已经换成 npm + mod.js 了

@oxUnd
Copy link

oxUnd commented Jun 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants