-
Notifications
You must be signed in to change notification settings - Fork 245
lodash dependecy still exists. #495
Comments
Thank you for including the temp fix here, @code-smith . |
Can someone merge the PR and release it? It would be of great help ! |
@code-smith There's a PR open to include |
@ShaunYearStrong This is not the right way to go ahead. It's your decision, but personally i don't think its the right way to go ahead. |
@code-smith - Good point, I didn't notice the move away from lodash dependencies. In the plugin libraries, there was an effort to normalise the version of lodash used which is why I made this decision. |
@ShaunYearStrong thanks for reconsidering your decision. Also note that lodash-amd 4.0 has a very different code structure; most use the latest version , so it will just add another library to user's application code base which is not desirable. |
@code-smith - It would work, I'm not a fan of including another library's code in here though. EDIT: Just realised that's not AMD |
@ShaunYearStrong The ployfill i included is an optimal solution that would fix everything. |
@code-smith I've spoken to some colleagues and they agree it's the best way. I'll merge it now but release will be someone else, as we're running through quite a few issues atm. Thanks for your work! |
@ShaunYearStrong thanks and really appreciate the gesture. I used the editor to build an in-house cms and i must say this is the best out there. You guys rock !! |
The latest scribe-editor installed through npm results in dependency errors.
It says cannot resolve module 'lodash-amd/modern/string/escape' in the below file
https://github.com/guardian/scribe/blob/master/src/plugins/core/formatters/plain-text/escape-html-characters.js
lodash-amd is not listed as dependency,so relevant files are not downloaded.
I had to add [email protected] as dependency to resolve this,the latest lodash-amd doesn't maintain same folder structure, so it's of no help.
This error doesn't not happen when scribe is downloaded from bower. The reason being there are polyfills for that particular dependency thats being added to main scribe.js source file.
I propose adding same polyfill to the file mentioned above to resolve this issue instead of adding and entire obsolete library.
Will make an PR and reference this issue.
Thanks
The text was updated successfully, but these errors were encountered: