Friday, June 24, 2022
HomeGame DevelopmentCan't discover module './fs' error - Cocos Creator

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


Good day everybody,

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

[Build] Can’t 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’t 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 (inner/modules/cjs/loader.js:887:15)
    at o._resolveFilename (electron/js2c/renderer_init.js:33:917)
    at Operate.Module._resolveFilename (C:CocosDashboard_1.2.0resources.editorsCreator3.5.1resourcesapp.asarnode_modulesfix-electron-requireindex.js:7:24)
    at Module._load (inner/modules/cjs/loader.js:732:27)
    at Operate.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require [as __require] (inner/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 (inner/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)



Can you discover fs beneath this folder? I’m utilizing creator 3.5.1 and have cocos analytics enabled, such as you, and my construct is working wonderful.

I wasn’t utilizing analytics however the error was on analytics so what I find yourself doing is deleting analytics beneath fs folder.

Thanks.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments