You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the migration script last week and ran into a bit of trouble with the import statements.
Instead of changing the import lines to * from "react-ionicons" it skipped over the . at the end of the line and the from became react-ionicons.js
I locally changed line 25 in the migration file to include a . in the regex and that worked the second time.
Example: line = line.replace(/(react-ionicons\/lib\/[a-zA-Z]*)/, 'react-ionicons')
became: line = line.replace(/(react-ionicons\/lib\/[a-zA-Z.]*)/, 'react-ionicons')
And that solved the problem for us and helped the import lines match what's recommended in the documentation.
The text was updated successfully, but these errors were encountered:
I ran the migration script last week and ran into a bit of trouble with the import statements.
Instead of changing the import lines to
* from "react-ionicons"
it skipped over the . at the end of the line and the from becamereact-ionicons.js
I locally changed line 25 in the migration file to include a . in the regex and that worked the second time.
Example:
line = line.replace(/(react-ionicons\/lib\/[a-zA-Z]*)/, 'react-ionicons')
became:
line = line.replace(/(react-ionicons\/lib\/[a-zA-Z.]*)/, 'react-ionicons')
And that solved the problem for us and helped the import lines match what's recommended in the documentation.
The text was updated successfully, but these errors were encountered: