inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
11 stars 1 forks source link

I can't see a navigation bar on my local inexor site clone #475

Closed IAmNotHanni closed 7 years ago

IAmNotHanni commented 7 years ago

I just created a new branch "hanni/redesign" from the inexor site repository. After npm install:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN bootstrap@4.0.0-beta requires a peer of jquery@>=3.0.0 but none was installed.
npm WARN bootstrap@4.0.0-beta requires a peer of popper.js@^1.11.0 but none was installed.
npm WARN @inexorgame/site@0.1.0 No repository field.

I cant see a menu on my site when I run npm run dev:

G:\INEXOR\website_redesign\site>npm run dev

> @inexorgame/site@0.1.0 dev G:\INEXOR\website_redesign\site
> cross-env NODE_ENV=development webpack-dev-server --open --inline --hot

Project is running at http://localhost:8080/
webpack output is served from /dist/
(node:6364) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.

browser_console

IAmNotHanni commented 7 years ago

browserdump_2

Looks like some dependencies are missing?

  "dependencies": {
    "bootstrap": "^4.0.0-alpha.6",
    "font-awesome": "^4.7.0",
    "vee-validate": "^2.0.0-rc.5",
    "vue": "^2.3.4",
    "vue-disqus": "^2.0.3",
    "vue-resource": "^1.3.4",
    "vue-router": "^2.5.3"
  },
  "devDependencies": {
    "babel-core": "^6.0.0",
    "babel-loader": "^6.0.0",
    "babel-preset-es2015": "^6.0.0",
    "cross-env": "^3.0.0",
    "css-loader": "^0.25.0",
    "file-loader": "^0.9.0",
    "karma": "^1.5.0",
    "karma-webpack": "^2.0.2",
    "vue-loader": "^10.0.0",
    "vue-template-compiler": "^2.1.0",
    "webpack": "^2.1.0-beta.25",
    "webpack-dev-server": "^2.1.0-beta.9"
  },
Fohlen commented 7 years ago

Actually jQuery is a dependency of bootstrap so idk

Fohlen commented 7 years ago

Can somebody externally verify this, maybe @terencode ?

IAmNotHanni commented 7 years ago

@Fohlen I applied your fix npm install jquery@latest but still I can't see a navigation bar =(

G:\INEXOR\website_redesign\site>npm install jquery@latest
@inexorgame/site@0.1.0 G:\INEXOR\website_redesign\site
+-- jquery@3.2.1
`-- UNMET PEER DEPENDENCY popper.js@^1.11.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN bootstrap@4.0.0-beta requires a peer of popper.js@^1.11.0 but none was installed.
npm WARN @inexorgame/site@0.1.0 No repository field.

test333

IAmNotHanni commented 7 years ago

@Fohlen did suggest to change ^in bootstrap's dependency line to =

  "dependencies": {
    "bootstrap": "=4.0.0-alpha.6",
    "font-awesome": "^4.7.0",
    "vee-validate": "^2.0.0-rc.5",
    "vue": "^2.3.4",
    "vue-disqus": "^2.0.3",
    "vue-resource": "^1.3.4",
    "vue-router": "^2.5.3"
  },
IAmNotHanni commented 7 years ago

The problem has been solved with the above fix. Thank you, Fohlen! check https://github.com/inexorgame/site/compare/b09eb6e4c2f6...76067d952678