Coder Social home page Coder Social logo

ember-cli-mapbox-gl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ember-cli-mapbox-gl's Issues

Uncaught TypeError: application.container.lookupFactory is not a function

Am new to ember so this error might be something I am missing.

I want to display a map in an ember app.

DEBUG: -------------------------------
ember.debug.js:6507DEBUG: Ember : 2.6.2
ember.debug.js:6507DEBUG: Ember Data : 2.7.0
ember.debug.js:6507DEBUG: jQuery : 2.2.4
ember.debug.js:6507DEBUG: -------------------------------

Steps to produce the error:

mapbox-gl.js:7 Uncaught TypeError: application.container.lookupFactory is not a function initialize @ mapbox-gl.js:7(anonymous function) @ ember.debug.js:5522(anonymous function) @ ember.debug.js:5538visit @ ember.debug.js:53955DAG.topsort @ ember.debug.js:2589_runInitializer @ ember.debug.js:5537runInstanceInitializers @ ember.debug.js:5520_bootSync @ ember.debug.js:3902didBecomeReady @ ember.debug.js:4914invoke @ ember.debug.js:991flush @ ember.debug.js:1055flush @ ember.debug.js:863end @ ember.debug.js:177run @ ember.debug.js:299join @ ember.debug.js:319run.join @ ember.debug.js:20614(anonymous function) @ ember.debug.js:20677fire @ jquery.js:3187fireWith @ jquery.js:3317ready @ jquery.js:3536completed @ jquery.js:3552

define('ember-cli-mapbox-gl/instance-initializers/mapbox-gl', ['exports'], function (exports) {
  'use strict';

  exports.initialize = initialize;

  function initialize(application) {
    var config = application.container.lookupFactory('config:environment');

    if (!config.mapbox || !config.mapbox.accessToken) {
      console.error('Please specify your mapbox.accessToken in your config.');
      return;
    }

    mapboxgl.accessToken = config.mapbox.accessToken;
  }

  exports['default'] = {
    name: 'mapbox-gl-access',
    initialize: initialize
  };
});

Tried Google searches for this error and found nothing that helped me resolve this issue so I am filing it here.

Thanks for your help.

Error during ember build

Getting this error, followed the directions and ensured that the bower component is installed properly. What could be going on?

modules/ember-cli-mapbox-gl/instance-initializers/mapbox-gl.js: line 9, col 3, 'mapboxgl' is not defined.

1 error

modules/ember-cli-mapbox-gl/services/mapbox-gl.js: line 17, col 23, 'mapboxgl' is not defined.

1 error

Can't install properly

When I use the component, I'm seeing:

Uncaught Error: Could not find module 'ember-cli-mapbox-gl/addon/mixins/mapbox-gl' imported from 'dd-explore/components/mapbox-map'

The path used in the example doesn't work either (same error). Where can I find some more guidance on how to install this or node libraries in general?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.