Module not found: ../Api/Worker


#1

Fuse version = 1.10.0
Error: : Uncaught require(): module not found: …/Api/Worker
In: Fuse.Scripting.DiagnosticSubject
Project.unoproj
Capture4

Capture3
hi all, please i need help


#2

In your .unoproj try

    "Api/*.js:Bundle"

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


#3

i added bundle but same error


#4

Is this in desktop preview? Rebuild the project.


#5

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’)


#6

Can you share the worker file?


#7

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

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

#8

hhhhh thanks its working you are a best


#9

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


#10

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