Transitioning from the angular realm to aurelia has been a learning experience. However, I've hit a roadblock trying to figure out how to integrate elasticsearch.js
into my aurelia app.
Does anyone have any tips on how to achieve this? Or perhaps a suggestion for further reading?
My findings:
- the aurelia documentation on adding libraries: provides useful examples but doesn't address the elasticsearch library specifically
- stackoverflow thread: I can't seem to replicate the proposed solution in my own project
The setup:
- utilizing aurelia cli
- elasticsearch installed via npm
added the following configuration to aurelia.json
{ "name": "elasticsearch", "path": "../node_modules/elasticsearch/src", "main": "elasticsearch" }
The issue at hand:
when running
au run --watch
, an error occurs{ uid: 10, name: 'writeBundles', branch: false, error: { Error: ENOENT: no such file or directory, open '/Users/xxxxxxxx/dev/aurelia_testrun/au-basic/src/path.js'
- it appears that something is looking for files - like
path.js
- in the application's source directory. Is this assessment accurate?