Tuesday, June 21, 2022
HomeGame DevelopmentCan not discover module './fs' error - Cocos Creator

Can not discover module ‘./fs’ error – Cocos Creator


Whats up everybody,

I’m new to the cocos and typescript.
Once I’m constructing my app I’m getting the next error I recognize any assist.

[Build] Can not discover module ‘./fs’
Require stack:

  • C:UsersEnes.CocosCreator.serviceanalyticsnode_modulesfs-extralibindex.js
  • C:UsersEnes.CocosCreator.serviceanalyticsbuilderbuilder.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarextensioncocos-serviceutilsutil.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarextensioncocos-serviceutilsindex.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarextensioncocos-servicecontributionsbuilderhooks.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_modules@editorcreatordistmoduleindex.ccc
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_moduleseditorindex.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarbuiltinbuilderdistworkerindex.ccc
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_modules@baseelectron-workerstaticscript.ccc
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_modules@baseelectron-workerstaticworker.html
    Error: Can not discover module ‘./fs’
    Require stack:
  • C:UsersEnes.CocosCreator.serviceanalyticsnode_modulesfs-extralibindex.js
  • C:UsersEnes.CocosCreator.serviceanalyticsbuilderbuilder.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarextensioncocos-serviceutilsutil.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarextensioncocos-serviceutilsindex.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarextensioncocos-servicecontributionsbuilderhooks.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_modules@editorcreatordistmoduleindex.ccc
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_moduleseditorindex.js
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarbuiltinbuilderdistworkerindex.ccc
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_modules@baseelectron-workerstaticscript.ccc
  • C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_modules@baseelectron-workerstaticworker.html
    at Module._resolveFilename (inside/modules/cjs/loader.js:887:15)
    at o._resolveFilename (electron/js2c/renderer_init.js:33:917)
    at Perform.Module._resolveFilename (C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_modulesfix-electron-requireindex.js:7:24)
    at Module._load (inside/modules/cjs/loader.js:732:27)
    at Perform.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require [as __require] (inside/modules/cjs/loader.js:959:19)
    at Module.require (C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_modules@editorcreatordistrequire.js:1:689)
    at require (inside/modules/cjs/helpers.js:88:18)
    at Object. (C:UsersEnes.CocosCreator.serviceanalyticsnode_modulesfs-extralibindex.js:5:6)
    at Object. (C:UsersEnes.CocosCreator.serviceanalyticsnode_modulesfs-extralibindex.js:29:3)


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments