Skip to content
This repository has been archived by the owner on Dec 26, 2019. It is now read-only.

Importing locales from /vendor doesn't work #111

Open
Macxim opened this issue Mar 19, 2018 · 1 comment
Open

Importing locales from /vendor doesn't work #111

Macxim opened this issue Mar 19, 2018 · 1 comment

Comments

@Macxim
Copy link

Macxim commented Mar 19, 2018

In the documentation it says:

When you need another language, you should import a locale file using your ember-cli-build.js. Just import vendor/bootstrap-datepicker-locales/bootstrap-datepicker.<LANGUAGE_CODE>.js, e.g.:

// ember-cli-build.js
app.import('vendor/bootstrap-datepicker-locales/bootstrap-datepicker.de.js');

This returns: `Error: ENOENT: no such file or directory, open '/../tmp/source_map_concat-input_base_path-FkhxKBxt.tmp/vendor/bootstrap-datepicker-locales/bootstrap-datepicker.nl.js'

Importing directly from node_modules seems to work fine though:

app.import('node_modules/bootstrap-datepicker/dist/locales/bootstrap-datepicker.nl.min.js');

@jelhan
Copy link
Contributor

jelhan commented Dec 28, 2018

Path in documentation seems to be wrong. Import from vendor/ works fine if you add missing .min.js:

app.import('vendor/bootstrap-datepicker-locales/bootstrap-datepicker.<LANGUAGE_CODE>.min.js');
app.import('vendor/bootstrap-datepicker-locales/bootstrap-datepicker.de.min.js');

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants