question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

custom-forms causing error with v2 alpha

See original GitHub issue

Describe the problem:

Include the custom forms plugin, watch the build fail.

tailwindcss 2.0.0-alpha.1

   🚀 Building: src/tailwind.css

   🚫 TypeError: value.charCodeAt is not a function

Link to a minimal reproduction:

const forms = require("@tailwindcss/custom-forms");
module.exports = {
  plugins: [forms],
};

I’m sure the response will be the same as it was in regards to #2636 , but I figured I’d file this issue anyways. I’m sure lots of people use the forms plugin, and would not assume it to create a failure that stops them from using v2.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
perryraskincommented, Dec 20, 2020

I’m hitting the following errors when I try to update to v2. After running npm install tailwindcss@latest postcss@latest autoprefixer@latest I get:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: tailwindcss@2.0.2
npm ERR! node_modules/tailwindcss
npm ERR!   tailwindcss@"2.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer tailwindcss@"^1.0" from @tailwindcss/custom-forms@0.2.1
npm ERR! node_modules/@tailwindcss/custom-forms
npm ERR!   @tailwindcss/custom-forms@"^0.2.1" from @tailwindcss/ui@0.5.0
npm ERR!   node_modules/@tailwindcss/ui
npm ERR!     @tailwindcss/ui@"^0.5.0" from the root project

I tried uninstalling /ui and /custom-forms but I still seem to be getting this. Anyone see something similar and solve it?

Update: Ok I removed all plugins from tailwind.config.js ran npm uninstall tailwindcss @tailwindcss/ui autoprefixer postcss and then ran the above command again and it worked!

0reactions
robbyricecommented, Jan 5, 2021

You should remove it from the plugins section in your tailwind.config.js file and then recompile your css and javascript

module.exports = {
  purge: {},
  theme: {},
  variants: {},
  plugins: [
    require('@tailwindcss/ui') <- this is the line you need to delete
  ]
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

NetSuite Applications Suite - SuiteScript 2.x Custom Forms
... Theme Developer Tool Overrides May Cause Error On Activation ... Associating Custom Code (Client SuiteScript) Files With Custom Forms.
Read more >
Error message: The custom form cannot be opened
Error message: The custom form cannot be opened ; 1. On the Tools menu, click Options, and then click the 'other' tab. ;...
Read more >
Simple Template-Driven Form Angular4 is giving error
This is a simple form with one input with one required validation. That's all. Can someone help me out? abc.component.html <form #customForm=" ...
Read more >
Error 10097 - Incorrect Original Item Type - Knowledgebase
Often occurs when changing a listing from auction to fixed price. Cause: Attempting to relist from previous data. Solution: In the submission window,...
Read more >
Error 13 when posting End of Day to QuickBooks
Legacy KB Id: 4420.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found