ember-fastboot / ember-fastboot/ember-cli-fastboot

Stuck getting fastboot to work with ember-cli-slick

Open
#621 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
850
Forks
161
Avg merge
17h 45m
Merged PRs (30d)
19

Description

I'm trying to make ember-cli-slick fastboot compliant.
It uses slick.js from node_modules.
I'm attempting to get the treeforvendor hook / funnel operation working but not having much luck.
I'm following the documentation here https://www.ember-fastboot.com/docs/addon-author-guide#third-party-dependencies
but I suspect it's targetting bower rather than npm/node_modules.
```
treeForVendor(defaultTree) {
var browserVendorLib = new Funnel('node_modules/slick-carousel/slick/slick.js');

browserVendorLib = map(browserVendorLib, (content) => `if (typeof FastBoot === 'undefined') { ${content} }`);

return new mergeTrees([defaultTree, browserVendorLib]);
},
```
This results in the error:
Build Error (broccoli-persistent-filter:Mapper)

ENOTDIR: not a directory, scandir '_projectdir_/tmp/broccoli_persistent_filtermapper-input_base_path-FOInixjr.tmp/'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.