Registry / web-framework / akylas-nativescript-vue-template-compiler

akylas-nativescript-vue-template-compiler

JSON →
library2.1.14jsnpmunverified

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.

web-frameworkserialization
npm install akylas-nativescript-vue-template-compiler
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compile
const { compile } = require('@akylas/nativescript-vue-template-compiler')
import { compile } from '@akylas/nativescript-vue-template-compiler'
This package is CJS-only. ESM imports will fail.
default
const compiler = require('@akylas/nativescript-vue-template-compiler')
const compiler = require('akylas-nativescript-vue-template-compiler')
The npm package name is scoped under @akylas, not akylas-nativescript-vue-template-compiler.
compile
const { compile } = require('@akylas/nativescript-vue-template-compiler')
import { compile } from '@akylas/nativescript-vue-template-compiler/compile'
No subpath exports; only the main entry point is available.

Shows how to require the CJS module and compile a simple NativeScript-Vue template to a render function.

const compiler = require('@akylas/nativescript-vue-template-compiler'); const template = `<Label text="Hello"/>`; const result = compiler.compile(template, {}); console.log(result.render);
Debug
Known issues
gotchaPackage name is scoped @akylas, not akylas-nativescript-vue-template-compiler as the npm name suggests. Use npm install @akylas/nativescript-vue-template-compiler.
fix
Use require('@akylas/nativescript-vue-template-compiler') or import from @akylas/nativescript-vue-template-compiler.
affects: all
gotchaThis is a CJS-only package. Do not attempt ESM import; it will fail.
fix
Use require() instead of import statements.
affects: all
gotchaThe package is auto-generated; manual edits will be overwritten on update.
fix
Modify the source at platform/nativescript/compiler in the main repo, not the published package.
affects: all
deprecatedAs of Vue 3, NativeScript-Vue may be deprecated in favor of other solutions. This package may not receive further updates.
fix
Consider using NativeScript with Svelte or React Native instead.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module '@akylas/nativescript-vue-template-compiler'
Package not installed or wrong scoped name used.
fix
Run: npm install @akylas/nativescript-vue-template-compiler
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Attempting to require an ESM version, but this package is CJS.
fix
Use require() as shown in the quickstart.
Cannot find module 'nativescript-vue'
nativescript-vue peer dependency not installed.
fix
Run: npm install nativescript-vue
Upgrade
Version history
2.1.14latest on PyPI
Audit
Dependencies
nativescript-vuerequiredThe compiler is part of the nativescript-vue ecosystem and compiles templates for its runtime.
Agent activity
48 hits · last 30 days
node
6
ahrefsbot
2
Amazon
1
bingbot
1
petalbot
1
amazonbot
1
Resources