Importing a file not working

Hello,
I just want to ask a simple question. I have following directory structure -

main_dir/
  client/
    main.html
    main.js
  packages/
    package1/
      admin/
        layout/
          layout.jsx

I simply want to import (suppose) layout.jsx file inside main.js file.
Any help for this.

Thanks.

For example:
import { Smth } from '../packages/package1/admin/layout/layout.jsx'

Hello @none , Not working anymore and gives me the error

can not find module '../packages/package1/admin/layout/layout.jsx'

Thanks.