Comments (15)
Я в итоге решил проблему тем, что выкачал с гитхаба исходники и проект нормально собрался и запустился с помощью веб пака.
from angular2-yandex-maps.
Это из-за того,что NgModule из одного node_modules не равен NgModule из другого node_modules, даже если это одна и та же версия. Отредактируйте файл /src/tsconfig.app.json, добавив пути
"baseUrl": "",
"paths": {
"@angular/": [
"../node_modules/@angular/"
]
},
чтобы все ссылались в одно и тоже место и всё заработает.
Можно еще через npm link как-то это сделать, но чето я не стал разбираться, и так норм.
Если че, в строке "@angular/ "после слэша звёздочка, в обоих местах, чето при добавлении поста она не отобразилась
from angular2-yandex-maps.
возможно дурацкий совет, но попробуйте YaCoreModule.forRoot() последним поставить в импорте
from angular2-yandex-maps.
или YaCoreModule.forRoot(routing)
from angular2-yandex-maps.
Собрал из стартера webpack и на планкере https://plnkr.co/edit/PbRPJHlNvh73EZRyqHTt?p=preview, работает. Возможно еще в чем-то причины.
from angular2-yandex-maps.
Та же проблема, пробовал изменять порядок загрузки модулей и добавлять раути как аргумент.
"@angular/[email protected]":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@angular/common/-/common-4.0.0.tgz#ca18983222fdab4ecaa7a8b99eda6ff661e6dc92"
from angular2-yandex-maps.
Столкнулся точно с такой же проблемой, собирал проект с помощью angular-cli, под angular4.
from angular2-yandex-maps.
Спасибо за идею.
from angular2-yandex-maps.
Кто-нибудь нашел решение проблемы?
from angular2-yandex-maps.
@UnEpicFail
Такая же беда. Не собираеться проект с помощью angular-cli, под angular4.
import { YaCoreModule } from "angular2-yandex-maps";
При сборке ругаеться.
Варианты двигать вверх вниз в импорте не помогли
YaCoreModule.forRoot()
YaCoreModule.forRoot(routing)
Какие еще варианты будут?
P.S.
node: 8.1.3
os: win32 x64
"angular/cli": 1.2.0
"angular/common": 4.2.5
"angular/compiler": 4.2.5
"angular/core": 4.2.5
"angular/forms": 4.2.5
"angular/http": 4.2.5
"angular/platform-browser": 4.2.5
"angular/platform-browser-dynamic": 4.2.5
"angular/router": 4.2.5
"angular/compiler-cli": 4.2.5
Typescript 2.4.1
from angular2-yandex-maps.
@BGXi да ну нафиг)
Так тоже норм
private setYaMapScript(): void {
const map = this.render.createElement('script');
map.type = 'text/javascript';
map.src = `//api-maps.yandex.ru/2.1/?lang=ru_RU`;
map.onload = () => { /* logic */ };
this.render.appendChild(this.el.nativeElement, map);
}
from angular2-yandex-maps.
from angular2-yandex-maps.
Проект похоже не поддерживается, да?
from angular2-yandex-maps.
@flashart92 Подскажи выкачал исходники и? Я попробовал разместить \src
в папке проекта, но ошибка все та же...
from angular2-yandex-maps.
сделали фикс, пробуйте с новой версией.
from angular2-yandex-maps.
Related Issues (20)
- Работа с картами в ionic
- Работа с "controls" HOT 3
- . HOT 1
- import angular2-yandex-maps in NgModule HOT 3
- Maps isn't visible HOT 1
- Виден только первый plunker HOT 2
- Is it possible to include library as NgModule? HOT 1
- Angular 4 + Yandex map HOT 1
- Angular 5 + yandex maps
- Нулевая высота карты (angular 5) HOT 5
- как обновить маркеры?
- Добавить текст в поисковую строку
- Добавить в @Input() маркера hintContent
- Подключение скрипта карт HOT 1
- event о готовности карты
- Выбор локалей
- Прошу добавить возможность задавать цент карты по адресу
- Демки на plnkr не работают
- Кластер Event, ObjectManager Event
- Ошибка на сайте https://plnkr.co/
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-yandex-maps.