The error says: exports[f] is not a function.

Not sure why when I try to run....

import smartpy as sp

@sp.add_test(name = "First test")
def test():
    scenario = sp.test_scenario()
    scenario.p("<h1>First Output</h1>")

1 Answer 1


This is a load error of the page. You need to reload the page or turn off and on your browser, something like that. It can come from a cache problem in the browser.

  • I think this is correct. Since, it started working in chrome without changing any code.
    – icp
    Commented Dec 22, 2021 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.