kintone/js-sdk

@kintone/create-plugin generate mobile settings even if the mobile view is disabled

ueokande opened this issue · 0 comments

Target Package

  • @kintone/create-plugin 5.1.14

Environment

  • Operating System: macOS
  • Browser: N/A
  • Node.js version: v14.19.1

Current Behavior

I create my plugin by create-plugin with modern template by the following:

$ create-plugin --template modern my-plugin                           
                                                       

                                                                                                               
Please answer some questions to create your Kintone plug-in project :)
Let's start!                                           
                                                       
                                                                                                               
                                                                                                               
? Input your plug-in name in English [1-64chars] my-plugin                                                     
? Input your plug-in description in English [1-200chars] my-plugin                                             
? Does your plug-in support Japanese? No                                                                       
? Does your plug-in support Chinese? No                                                                        
? Input your home page url for English (Optional)                                                              
? Does your plug-in support mobile views? No                                                                   
? Would you like to use @kintone/plugin-uploader? No
Installing dependencies...                             

I disabled movile view:

Does your plug-in support mobile views? No

I ran npm bunld under the generated project. An error occurs:

$ npm run build                                                                 

...
ERROR in mobile
Module not found: Error: Can't resolve './src/js/mobile.ts' in '/Users/ueokande/workspace/my-plugin'

Webpack config contains mobile view config:

$ find src
src
src/js
src/js/desktop.ts
src/js/config.ts

$ cat webpack.config.js 
...
  entry: {                                             
    config: "./src/js/config.ts",
    desktop: "./src/js/desktop.ts",  
    mobile: "./src/js/mobile.ts",
  },                                                   

Expected Behavior

The command npm run build succeeded on generated project without movile view.