Formik: How to use Formik with a CDN

Created on 24 Apr 2019  路  12Comments  路  Source: formium/formik

鉂換uestion

I am trying to use Formik inside my Preact application. I am using a CDN for everything.
Have a look at: https://codepen.io/alqamabinsadiq/pen/XQyWme?editors=0010

Question stale

Most helpful comment

I am getting the same issue with cdn.
The URL that I have tried are:
https://unpkg.com/formik/dist/formik.umd.production.min.js
https://unpkg.com/formik/dist/formik.umd.production.js

connect.tsx:40 Uncaught TypeError: s is not a function
    at x (connect.tsx:40)
    at FieldArray.tsx:374
    at formik.umd.production.min.js:1
    at formik.umd.production.min.js:1

All 12 comments

Here is an example of Formik CDN with react: https://codepen.io/pankajJS/pen/xeQNqO?editors=1010. I hope it will work the same with Preact as well.

Here is an example of Formik CDN with react: https://codepen.io/pankajJS/pen/xeQNqO?editors=1010. I hope it will work the same with Preact as well.

It's not working. kindly check your pen again.

It is working now.

It is working now.

Yeah I changed your code and it worked but the problem is it's not working with Preact.

I see its working

Its not working, give 404 from cdn link, any solution?

What is CDN URI??

@kumar88kanishk <script src="https://unpkg.com/formik/dist/formik.umd.production.js"></script> extracted from

https://jaredpalmer.com/formik/docs/overview

Thanks @Douglasacost. Cheers!!

Cannot find "/dist/formik.umd.production.js" in [email protected]

I get this when i visit the URI @Douglasacost

https://unpkg.com/[email protected]/dist/formik.umd.production.min.js this is the correct uri but it gives me an error

connect.tsx:40 Uncaught TypeError: l is not a function

I am getting the same issue with cdn.
The URL that I have tried are:
https://unpkg.com/formik/dist/formik.umd.production.min.js
https://unpkg.com/formik/dist/formik.umd.production.js

connect.tsx:40 Uncaught TypeError: s is not a function
    at x (connect.tsx:40)
    at FieldArray.tsx:374
    at formik.umd.production.min.js:1
    at formik.umd.production.min.js:1
Was this page helpful?
0 / 5 - 0 ratings

Related issues

pmonty picture pmonty  路  3Comments

sibelius picture sibelius  路  3Comments

outaTiME picture outaTiME  路  3Comments

Jucesr picture Jucesr  路  3Comments

jordantrainor picture jordantrainor  路  3Comments