-
Notifications
You must be signed in to change notification settings - Fork 85
Missing Dependency #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This should work... using NextJs's way of dynamically importing a package on the client only
|
Many thanks @modikum I can confirm this works great. A few notes:
and replace with: Place this section just above the return section in the functions "createpost" and "editpost" respectively
This:
is the same as:
|
@modikum her solution worked great. TY. |
Excellent tutorial.
Also more as a heads up there is an issue with amazon cloud9 IDE (default) and it's detailed in tailwind issue Issue: 2810
(it reports as easymde):
I thought the real problem is Node 10x is installed by default on cloud9 IDE machines. It is made note of in the prerequisites which was read but not actually checked on the EC2 machine. To correct, I used the following guide.
Upgrade Node
However the build problems continued, and this is where I became jammed up.
I have tried:
npm install codemirror
with the import:
import CodeMirror from 'codemirror';
in both create-post.js and edit-post/[id].jsI have also tried:
npm install easymde
Any help would be appreciated.
Update: I have narrowed this down to this include
import SimpleMDE from "react-simplemde-editor
Update 2: I have also tried:
uiwjs/react-md-editor
Also failed to compile.
The text was updated successfully, but these errors were encountered: