Fuse Community

Module not found: ../Api/Worker

Fuse version = 1.10.0
Error: : Uncaught require(): module not found: …/Api/Worker
In: Fuse.Scripting.DiagnosticSubject
Project.unoproj
Capture4
Capture1 Capture3
hi all, please i need help

In your .unoproj try

    "Api/*.js:Bundle"

Docs Ref: https://fuseopen.com/docs/assets/bundle.html#bundled-files

i added bundle but same error

Is this in desktop preview? Rebuild the project.

I tried all the solutions Without any result
-uno clean and Rebuild project
-change name project
-Check the name folders and file
-“Api/*.js:Bundle”,
-“Api/**.js:Bundle”,
var worker=require(’…/Api/Worker’),
var worker=require(’./Api/Worker’)
var worker=require(’@/Api/Worker’)

Can you share the worker file?

Oh, I think you need to change your require as well to:

var worker = require('Api/Worker');
3 Likes

hhhhh thanks its working you are a best

2 Likes

Woohoo! :tada: You owe me a good meal from your country now :smile:

2 Likes

ok your welcome :smile::smile::taco::doughnut:

2 Likes