{"id":24897,"library":"akylas-nativescript-vue-template-compiler","title":"@akylas/nativescript-vue-template-compiler","description":"Template compiler for NativeScript-Vue applications, auto-generated from the Akylas fork. Version 2.1.14 is the latest stable. This package transforms Vue templates into render functions for NativeScript, enabling native mobile UI components. Unlike the core `nativescript-vue` compiler, this fork may include Akylas-specific patches and tweaks. Release cadence is tied to the Akylas fork of NativeScript-Vue. Typically used as a build-time dependency via webpack or other bundlers.","status":"active","version":"2.1.14","language":"javascript","source_language":"en","source_url":"https://github.com/Akylas/nativescript-vue","tags":["javascript","nativescript-vue","compiler"],"install":[{"cmd":"npm install akylas-nativescript-vue-template-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add akylas-nativescript-vue-template-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add akylas-nativescript-vue-template-compiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"The compiler is part of the nativescript-vue ecosystem and compiles templates for its runtime.","package":"nativescript-vue","optional":false}],"imports":[{"note":"This package is CJS-only. ESM imports will fail.","wrong":"import { compile } from '@akylas/nativescript-vue-template-compiler'","symbol":"compile","correct":"const { compile } = require('@akylas/nativescript-vue-template-compiler')"},{"note":"The npm package name is scoped under @akylas, not akylas-nativescript-vue-template-compiler.","wrong":"const compiler = require('akylas-nativescript-vue-template-compiler')","symbol":"default","correct":"const compiler = require('@akylas/nativescript-vue-template-compiler')"},{"note":"No subpath exports; only the main entry point is available.","wrong":"import { compile } from '@akylas/nativescript-vue-template-compiler/compile'","symbol":"compile","correct":"const { compile } = require('@akylas/nativescript-vue-template-compiler')"}],"quickstart":{"code":"const compiler = require('@akylas/nativescript-vue-template-compiler');\nconst template = `<Label text=\"Hello\"/>`;\nconst result = compiler.compile(template, {});\nconsole.log(result.render);","lang":"javascript","description":"Shows how to require the CJS module and compile a simple NativeScript-Vue template to a render function."},"warnings":[{"fix":"Use require('@akylas/nativescript-vue-template-compiler') or import from @akylas/nativescript-vue-template-compiler.","message":"Package name is scoped @akylas, not akylas-nativescript-vue-template-compiler as the npm name suggests. Use npm install @akylas/nativescript-vue-template-compiler.","severity":"gotcha","affected_versions":"all"},{"fix":"Use require() instead of import statements.","message":"This is a CJS-only package. Do not attempt ESM import; it will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Modify the source at platform/nativescript/compiler in the main repo, not the published package.","message":"The package is auto-generated; manual edits will be overwritten on update.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using NativeScript with Svelte or React Native instead.","message":"As of Vue 3, NativeScript-Vue may be deprecated in favor of other solutions. This package may not receive further updates.","severity":"deprecated","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install @akylas/nativescript-vue-template-compiler","cause":"Package not installed or wrong scoped name used.","error":"Error: Cannot find module '@akylas/nativescript-vue-template-compiler'"},{"fix":"Use require() as shown in the quickstart.","cause":"Attempting to require an ESM version, but this package is CJS.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module not supported"},{"fix":"Run: npm install nativescript-vue","cause":"nativescript-vue peer dependency not installed.","error":"Cannot find module 'nativescript-vue'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}