A power series $\sum_{n = 0}^\infty a_nx^n$ such that $\sum_{n=0}^\infty a_n= +\infty$ but $\lim_{x \to 1} \sum_{n = 0}^\infty a_nx^n \ne \infty$
Such sequences don't exist. We prove this by contradiction:
Assume that $A_n := \sum_{k=1}^n a_k \rightarrow \infty$, $ f(x):=\sum_{k=1}^\infty a_k z^k$ is convergent in the unit disc and $\lim_{x \uparrow 1} f(x)$ exists. Removing finite many $a_i$ doesn't change the behaviour of $A_n$ and also not the existence of the limes for $x \uparrow 1$. Thus, we may assume that $A_n \ge 0$ for all $n \ge 1$. Now use Abel summation in the form $$\label{1}\tag{1}\sum_{k=1}^n a_k x^k = A_n x^n - \sum_{k=1}^{n-1} A_k x^k (1 - x).$$ Because $$|A_n x^n| \le \sum_{j=1}^n |a_j| |x|^j$$ and the series is absolute convergent (as a power series) for $|x| < 1$, we see that $|A_n x^n|$ is bounded for fixed $|x| < 1$. Since $|A_n x^n| \le C(x)$, we get for all $|y| < |x|$ that $|A_n y^n| \le C(x) |y/x|^n \rightarrow 0$. Hence $\lim_{n \rightarrow \infty } A_n y^n =0$ for all $|y| < |x|$. Since $x$ was arbitary, we get this statement for all $|y| <1$ (not necessarily uniform convergence).
Letting $n \rightarrow \infty$ in \eqref{1} gives for $|x| <1$ that $$\label{2}\tag{2}f(x)=\sum_{k=1}^\infty a_k x^k = (1-x) \sum_{k=1}^\infty A_k x^k.$$ Since $\lim_{x \uparrow 1} f(x):=c$ exists (note that we can suppose that c>0, because we can w.l.o.g. increase $a_1$), we have $$\sum_{k=1}^\infty A_k x^k \sim \frac{1}{1-x}.$$ The Hardy–Littlewood tauberian theorem already implies that $$\sum_{k=1}^n (n+1-k) a_k = \sum_{k=1}^n A_k \sim n.$$ But, we have $$\frac{1}{2n}\sum_{k=1}^{2n} A_k \ge \frac{1}{2} A_n \rightarrow \infty.$$ A contradiction!
The problem changes rapidly, if we only require that $\sum_{k=1}^n a_k$ is not convergent.
For example take $a_k = (-1)^k$: We have $$\sum_{k=0}^\infty (-1)^k x^k = \frac{1}{x+1}$$ and that $\lim_{x \uparrow 1} (x+1)^{-1} = 1/2$, but $\sum_{k=0}^n (-1)^k$ is not convergent.
As zhw shows in the second answer, we can also prove that $\lim_{x \uparrow 1} f(x) = \infty$.
Note for this that the identity in \eqref{2} implies, since $A_n >K$ for all $n \ge N$ that $$f(x) \ge (1-x) K \sum_{k=N}^\infty x^k = K x^N$$ and thus $\liminf_{x \uparrow 1} f(x) \ge K$. Because $K>0$ is arbitary large, we get already $\lim_{x \uparrow 1} f(x) = \infty$.
The following proof that $\lim_{x\to 1^-}\sum_{n=0}^{\infty}a_nx^n = \infty$ seems simpler to me..
Lemma: Let $A_n=\sum_{k=0}^{n}|a_k|.$ Then $\sum_{n=0}^{\infty}A_nx^n<\infty$ for $x\in (0,1).$
This follows from the fact that the radius of convergence is $1,$ which is the same as saying $\limsup |a_n|^{1/n} =1.$ This is a nice exercise. (A proof of the lemma is now in the comments.)
To prove the main result, let $S_n=\sum_{k=0}^{n}a_n;$ set $S_{-1}=0.$ Let $x\in (0,1).$ Then
$$\tag 1\sum_{n=0}^{\infty}a_nx^n = \sum_{n=0}^{\infty}(S_n-S_{n-1})x^n.$$
Now because $|S_n| \le A_n,$ the lemma shows we can write the last series as the difference of two convergent series, i.e. as
$$ \sum_{n=0}^{\infty}S_nx^n - \sum_{n=1}^{\infty}S_{n-1}x^n = \sum_{n=0}^{\infty}S_nx^n - \sum_{n=0}^{\infty}S_{n}x^{n+1} = \sum_{n=0}^{\infty}S_nx^n(1-x).$$
Now let $M>0.$ Then there is $N$ such $S_n>M$ for $n>N.$ Write the last series as
$$(1-x)\left (\sum_{n=0}^{N}S_nx^n +\sum_{n=N+1}^{\infty}S_nx^n\right ) > (1-x)\left (\sum_{n=0}^{N}S_nx^n +Mx^{N+1}\frac{1}{1-x}\right ).$$
The $\liminf_{x\to 1^-}$ of the expression on the right equals $0 + M =M.$ We have thus shown the $\liminf_{x\to 1^-}$ of the left side of $(1)$ is $\ge M.$ Since $M$ was arbitrary, this $\liminf$ is $\infty.$ Thus the limit of left side of $(1)$ is $\infty$ as desired.