if you do not precede the path with a backslash
If you start with a name, your browser will assume that what you want is in the current directory.
You have to think of old school, where everything was based on folders.
So if your url is myhost.com/postse
you ask js/scriptname.js
, your browser asks myhost.com/js/scriptname.js
because you are thinking that you mean that js is in the same folder as the posts.
The problem then comes when you are in the "folder" myhosts.com/posts/my-favourite-post
because your browser will try to load, myhost.com/posts/js/scriptname.js
because it thinks that js is in the current folder.
on the other hand
If you start your resource path with a bar, ie, /js/scriptname.js
, the browser assumes that the js folder is outside the root folder - no matter how many folders you are in the URL
simplifying. just start with your import code bar
<script src="{{ asset('assets/js/formCurriculo.js') }}" type="text/javascript" async="true" defer></script>
Your file is saved with the .blade.php extension?
– Marcelo Gomes