Import statement isn't working #3
Comments
can you add directory structure ? (use |
. |
I think you should remove |
Ok let me test it |
I put h.js and h.html in root of directory but It again make that error . <script type="module" src="h.js"></script> after adding "type=module" there is no error but nothing will happen i mean nothing will be rendered on browser @PooiaFerdowsi . |
I think we should add a |
Oh , are you sure that function name is It's now new , it's happened for me but I don't know about js . currently I've learn html/css ! So I have some guesses for that error: The See following dir stuct
|
Hello, yeah Render is correct but it again give that error . I didn't understand what u Mean about directory structure |
if you experience in python , please see following source:
libs.py: def somefn():
.... codes.py: import ../libs.py now where is |
I think pycache would be in test dir . |
I think python will raise error. but js is like py in this station |
Hey @PooiaFerdowsi , applecake is going to replace with a new library (look readme) . And I want to suggest some names please if you can 🙏. |
Unfortunately I am not well for naming. if it war created by me, I call it jslfw (JavaScriptLittleFrameWork) because I don't have any name for project |
@PooiaFerdowsi I chose panix name for new library and I fix this issue . Would you like to join me at panix (you should know js)? |
I know primary of javascript and i liket to join |
You are best :) |
please come to panix library |
I added this to Render function:
And made a test script :
But it make a error:
Uncaught SyntaxError: Cannot use import statement outside a module
@amirghazi87 and @PooiaFerdowsi do you know how to fix it ?
The text was updated successfully, but these errors were encountered: