npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@amj7/lucide-patch-nativescript-vue

v1.0.12

Published

Patches lucide-vue-next to be used in NativeScript Vue3 via @nativescript-community/ui-svg and @vue/server-renderer

Downloads

50

Readme

@amj7/lucide-patch-nativescript-vue

Patches lucide-vue-next to be used in NativeScript Vue 3 via @nativescript-community/ui-svg and @vue/server-renderer.

This package addresses compatibility issues between lucide-vue-next and NativeScript Vue 3 by:

  • Applying a patch (lucide-vue-next+0.475.0.patch) to your project during the postinstall script.
  • Providing a nativescript.webpack.js in the plugin that overrides imports of "vue" within @vue/server-renderer to point back to original vue.
  • Enabling tree-shaking for lucide-vue-next icons in your NativeScript Vue 3 application.

StackBlitz Example

Installation

  1. Install Peer Dependencies:

    npm install @nativescript-community/ui-canvas @nativescript-community/ui-svg @vue/server-renderer
  2. Install this Package:

    npm install @amj7/lucide-patch-nativescript-vue

    The postinstall script will automatically apply the patch to your lucide-vue-next dependency (version ^0.475.0).

  3. Register SVGView:

    In your app.js (or equivalent entry point):

    import { registerElement } from "nativescript-vue";
    
    registerElement(
      "SVGView",
      () => require("@nativescript-community/ui-svg").SVGView
    );

Usage

Refer to the Lucide Vue Next documentation for general usage instructions. This package ensures compatibility with NativeScript Vue 3.

<script setup>
import { Camera } from "lucide-vue-next";
</script>

<template>
  <Camera color="red" :size="32" />
</template>
// Inherited css color supported! (v1.0.7) // Examples:
<template>
  <Camera class="text-black dark:text-white" />
</template>

<template>
  <Page class="text-foreground">
    ...
    <Camera />
  </Page>
</template>

Props

| Prop | Type | Default | | ----------------------- | --------- | -------------- | | size | number | 24 | | color | string | currentColor | | stroke-width | number | 2 | | absolute-stroke-width | boolean | false | | default-class | string | lucide-icon |




Troubleshooting

  • Verifying the Patch: Check if node_modules/lucide-vue-next/dist/esm/createLucideIcon.js has been modified. You should see a defineComponent call within the file. If the patch hasn't been applied, try running npm install again.

  • TypeError: Vue.initDirectivesForSSR is not a function: This error indicates that the nativescript.webpack.js plugin was not applied correctly.

    • Manual Configuration: Add the webpack rule directly to your webpack.config.js file.

      // webpack.config.js
      const webpack = require("@nativescript/webpack");
      const path = require("path");
      
      module.exports = (env) => {
        webpack.init(env);
      
        webpack.chainWebpack((config) => {
          // Create a new rule for files coming from the specific package.
          config.module
            .rule("override-vue-for-server-renderer")
            .test(/\.(js|vue)$/)
            .include.add(
              path.resolve(__dirname, "node_modules", "@vue", "server-renderer")
            )
            .end()
            // Override the resolution so that any import of "vue" in @vue/server-renderer files points to the original Vue package
            .resolve.alias.set(
              "vue",
              path.resolve(__dirname, "node_modules/vue")
            );
        });
      
        return webpack.resolveConfig();
      };
  • UnhandledSchemeError: Reading from "node:stream" is not handled:

    • If you're trying to use stream-browserify in your project, you might need to patch @vue/server-renderer/dist/server-renderer.cjs.js using npx patch-package or bun patch:

      - const stream = new (require("node:stream")).Readable({ read() {
      + const stream = new (require("stream-browserify")).Readable({ read() {

      If using Bun, there's a known bug that breaks bun patch with @scoped packages. So you'll need to use quotes around the package name and fix the file .patch filename manually to @[email protected] once done.