webalys-hq / streamlinehq-npm

The deprecated Streamline NPM package, which will be deleted on 1st November 2022.
https://medium.com/streamline-icons/how-streamline-narrows-down-its-focus-eac6fdb5c6f2
24 stars 5 forks source link

GitLab pages error #28

Closed supermueller closed 3 years ago

supermueller commented 3 years ago

When implementing the icons using the NPM package the deployment on GitLab pages fails. Locally all works fine.

GitLab pages job log:

(node:70) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3159)
(node:70) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, mkdir '/builds/vitronic-web-ui/design-library/node_modules/@streamlinehq/streamlinehq/build/../img/streamline-light'
cbrwizard commented 3 years ago

Ok looks like that we need to add a way to specify where to install images, as mentioned in this issue https://github.com/webalys-hq/streamlinehq-npm/issues/3. One way which comes to my mind is adding a variable to .env file where you can specify a path to the img folder. Would that help you? Do you see a better solution?

supermueller commented 3 years ago

@cbrwizard: Specify a destination in the .env file seems a good solution.

cbrwizard commented 3 years ago

Today we announce that we're deprecating the Streamline NPM package. Instead, we’ll focus on the web app and Figma plugin, which are used by a noticeable share of our customers.

Please from now on instead of using our brittle package download the images directly from our website and insert them into your project as SVG files. Meanwhile, Streamline team is focused on ensuring that our web application provides the best user experience for developers' use cases. Please take 2 minutes to share feedback so that we can improve.

We'll keep this package with minimal life support until 1st November 2022, after which it's going to be deleted.

Please read the full story in this article.