kennstenicht / ember-cli-mapbox-gl Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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:
followed install instructions here: https://www.npmjs.com/package/ember-cli-mapbox-gl
load ember app in browser
console output:
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.
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
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?
I'm wondering what the differences between this addon and https://github.com/kturney/ember-mapbox-gl are and why we have two addons in the Ember ecosystem that appear to do the same thing ๐ค
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.