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
Describe the bug
A clear and concise description of what the bug is.
Module not found: Can't resolve './Constants' in 'D:\desktop\ant_design_pro\onefox\src\components\Drag' To Reproduce
Steps to reproduce the behavior:
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DragSource } from 'react-dnd';
import { ItemTypes } from './Constants';
Where is the Constants? How can I import the ItemTypes ? Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Browser chrome
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
In react-dnd, every drag source has a type. And what the types are depend on what you're dragging in your program. So in my app I have types "task" and "project", but you might have "contact" and "organization". If you don't want to type out these strings all the time (since you might misspell theme), you can store them all in a file:
Describe the bug
A clear and concise description of what the bug is.
Module not found: Can't resolve './Constants' in 'D:\desktop\ant_design_pro\onefox\src\components\Drag'
To Reproduce
Steps to reproduce the behavior:
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DragSource } from 'react-dnd';
import { ItemTypes } from './Constants';
Where is the Constants? How can I import the ItemTypes ?
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Browser chrome
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: