To help you understand Dzoooks' comment, the issue is that the function $f$ defined by $f(x)=|x|$ is nondifferentiable at the point zero, and hence the derivative of your function is not defined there.
However, the derivative is still well-defined away from zero (aside from the discontinuity in the original function at $x=1$).
Namely, if $x>0$ and $x\neq1$, then
$$
\frac{\left|x\right|^{n+1}}{1-x}=\frac{x^{n+1}}{1-x}.
$$
Taking the derivative of the above, we get
$$
\frac{d}{dx}\left[\frac{x^{n+1}}{1-x}\right]=\frac{x^{n}\left(n+1-nx\right)}{\left(1-x\right)^{2}}.
$$
If, on the other hand, $x<0$, then
$$
\frac{\left|x\right|^{n+1}}{1-x}=\frac{\left(-x\right)^{n+1}}{1-x}.
$$
Taking the derivative of the above, we get
$$
\frac{d}{dx}\left[\frac{\left(-x\right)^{n+1}}{1-x}\right]=\left(-1\right)^{n+1}\frac{x^{n}(n+1-nx)}{\left(1-x\right)^{2}}.
$$
Putting it all together, we can conclude
$$
\frac{d}{dx}\left[\frac{\left|x\right|^{n+1}}{1-x}\right]=\frac{x^{n}(n+1-nx)}{\left(1-x\right)^{2}}\times\begin{cases}
1 & \text{if }x>0\text{ and }x\neq1\\
\left(-1\right)^{n+1} & \text{if }x<0
\end{cases}
$$