Skip to content

ns preview error ForkTsCheckerWebpackPlugin on newly created app #1103

@stephenjason89

Description

@stephenjason89
[@nativescript/webpack] Error: 
 Unable to apply chain function from: nativescript-vue.
Error is: Error: Cannot call .tap() on a plugin that has not yet been defined. Call plugin('ForkTsCheckerWebpackPlugin').use(<Plugin>) first.
Error: Invalid plugin configuration: plugin('ForkTsCheckerWebpackPlugin').use(<Plugin>) was not called to specify the plugin
    at module.exports.toConfig (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/webpack-chain/src/Plugin.js:60:15)
    at /Users/stephenjasonwang/Development/myAwesomeApp/node_modules/webpack-chain/src/Config.js:129:63
    at Array.map (<anonymous>)
    at module.exports.toConfig (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/webpack-chain/src/Config.js:129:40)
    at Object.resolveConfig (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/@nativescript/webpack/dist/index.js:161:34)
    at module.exports (/Users/stephenjasonwang/Development/myAwesomeApp/webpack.config.js:9:17)
    at Command.<anonymous> (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/@nativescript/webpack/dist/bin/index.js:67:44)
    at Command.listener [as _actionHandler] (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/commander/lib/command.js:488:17)
    at /Users/stephenjasonwang/Development/myAwesomeApp/node_modules/commander/lib/command.js:1227:65
    at Command._chainOrCall (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/commander/lib/command.js:1144:12)
    at Command._parseCommand (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/commander/lib/command.js:1227:27)
    at Command._dispatchSubcommand (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/commander/lib/command.js:1050:25)
    at Command._parseCommand (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/commander/lib/command.js:1193:19)
    at Command.parse (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/commander/lib/command.js:897:10)
    at Object.<anonymous> (/Users/stephenjasonwang/Development/myAwesomeApp/node_modules/@nativescript/webpack/dist/bin/index.js:124:21)
    at Module._compile (node:internal/modules/cjs/loader:1734:14)
No configuration!

Steps to reproduce:

ns create myAwesomeApp --template @nativescript-vue/template-blank@latest
cd myAwesomeApp
ns preview

using the stackblitz ns preview works for me
https://stackblitz.com/edit/nativescript-vue-nativescript-vue-4tmvxkfs?file=src%2Fcomponents%2FHome.vue&title=NativeScript%20Starter%20Vue3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy