gadicc / meteor-headers

Access HTTP headers on both server and client. Client IP with proxy support.
https://atmospherejs.com/gadicohen/headers
GNU Lesser General Public License v3.0
61 stars 21 forks source link

Inject-initial problem on start up #26

Closed KevinBeckers closed 10 years ago

KevinBeckers commented 10 years ago

I am having problems using Meteor Headers because Inject-initial could not be found inside my Headers package.

Could someone help me with this problem? Or direct me in the right direction?

yours sincerely Kevin

Nemo64 commented 10 years ago

inject-initial is now a seperate package which headers depends on. Can you check if the package is inject-initial is installed? Did you install headers via meteorite?

KevinBeckers commented 10 years ago

Yes I did. All dependent packages are installed.

gadicc commented 10 years ago

Hi Kevin

Could you please copy and paste:

  1. The exact error
  2. The contents of .meteor/packages
  3. The contents of smart.json and smart.lock ?

I guess before that you could try just mrt update and confirm that you're using headers 0.0.23 and inject-initial 0.0.7.

Thanks

KevinBeckers commented 10 years ago

Gadi,

The exact error: Warning: ENOENT, no such file or directory '/app/build/packages/headers/website/packages/inject-initial

The contents of .meteor/packages:

standard-app-packages
autopublish
insecure
accounts-password
moment
reactive-store
Mesosphere
iron-router
roles
headers
form-manager
inject-initial

The contents of smart.json and smart.lock:

{
  "packages": {
    "iron-router": {},
    "moment": {},
    "reactive-store": {},
    "Mesosphere": {},
    "headers": {},
    "inject-initial": {}
  },
  "private": {
    "roles": {},
    "form-manager": {}
  }
}
{
  "meteor": {},
  "dependencies": {
    "basePackages": {
      "iron-router": {},
      "moment": {},
      "reactive-store": {},
      "Mesosphere": {},
      "headers": {},
      "inject-initial": {}
    },
    "packages": {
      "iron-router": {
        "git": "https://github.com/EventedMind/iron-router.git",
        "tag": "v0.7.1",
        "commit": "d1ffb3f06ea4c112132b030f2eb1a70b81675ecb"
      },
      "moment": {
        "git": "https://github.com/acreeger/meteor-moment.git",
        "tag": "v2.5.1",
        "commit": "8c9bc5d3fc96705057737cb9743d555417f6e551"
      },
      "reactive-store": {
        "git": "https://github.com/andrewreedy/reactive-store.git",
        "tag": "v0.0.1",
        "commit": "18a945ff0d1a449938f35afd2bbbf09d1ecd322a"
      },
      "Mesosphere": {
        "git": "https://github.com/copleykj/Mesosphere.git",
        "tag": "v0.1.9",
        "commit": "dc63582fa5d3a4dc3952a80bead9625ef4ab259b"
      },
      "headers": {
        "git": "https://github.com/gadicohen/meteor-headers.git",
        "tag": "v0.0.23",
        "commit": "f7c9a01c12b08f4bf4cd9965f60cf72cf9a62d87"
      },
      "inject-initial": {
        "git": "https://github.com/gadicc/meteor-inject-initial.git",
        "tag": "v0.0.7",
        "commit": "921a944815e06ece8ce4ded180e9d2e9e31f6000"
      },
      "blaze-layout": {
        "git": "https://github.com/EventedMind/blaze-layout.git",
        "tag": "v0.2.4",
        "commit": "b40e9b0612329288d75cf52ad14a7da64bb8618f"
      },
      "underscore-string-latest": {
        "git": "https://github.com/TimHeckel/meteor-underscore-string.git",
        "tag": "v2.3.3",
        "commit": "4a5d70eee48fbd90a6e6fc78747250d704a0b3bb"
      }
    }
  }
}

Thanks in advance, hope it helps.

gadicc commented 10 years ago

Hey, thanks for that. I can see what's wrong, but I'm not exactly sure where it's wrong and how it got there :> app/build/packages/headers/website/packages/inject-initial is a location that should never be checked by your app. There are a few Meteor tools out there which can cause problems if run in the wrong directory ever, this would be my prime suspect, but I've still never seen something quite like this before.

Can you paste the output of ls -l packages/{headers,inject-initial} ? (What OS are you on?) Did you ever move or manually symlink any of the package dirs?

KevinBeckers commented 10 years ago

Thanks for the hint it was in fact a thirth party testing framework. There was a setting for excluding directories from the test. So i exclude the /packages.

Thanks!

gadicc commented 10 years ago

Great, glad you're up and running!

(And yeah, packages should never be included as part of the Meteor directory structure... the package.js file specifies exactly which files should be included where (client/server), rather than including every .js file and sending according to the directory tree).