build: error when build application based on Stark 10.2.1
SuperITMan opened this issue · comments
Alexis Georges commented
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/NationalBankBelgium/stark/blob/master/CONTRIBUTING.md#got-a-question-or-problem
Current behavior
After installing dependencies, running npm run build
gives following error:
ERROR in node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts:1:13 - error TS1005: '=' expected.
1 import type * as fsStat from '@nodelib/fs.stat';
~
node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts:1:18 - error TS1005: ';' expected.
1 import type * as fsStat from '@nodelib/fs.stat';
~~~~~~
node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts:1:25 - error TS1005: ';' expected.
1 import type * as fsStat from '@nodelib/fs.stat';
~~~~
node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts:1:30 - error TS1005: ';' expected.
1 import type * as fsStat from '@nodelib/fs.stat';
~~~~~~~~~~~~~~~~~~
node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts:2:13 - error TS1005: '=' expected.
2 import type { Dirent, ErrnoException } from '../types';
~
node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts:2:45 - error TS1005: ';' expected.
2 import type { Dirent, ErrnoException } from '../types';
~~~~~~~~~~
node_modules/@nodelib/fs.scandir/out/index.d.ts:1:13 - error TS1005: '=' expected.
1 import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
~
node_modules/@nodelib/fs.scandir/out/index.d.ts:1:93 - error TS1005: ';' expected.
1 import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
~~~~~~~~~~~~~~~
node_modules/@nodelib/fs.scandir/out/index.d.ts:4:13 - error TS1005: '=' expected.
4 import type { Dirent, Entry } from './types';
~
node_modules/@nodelib/fs.scandir/out/index.d.ts:4:36 - error TS1005: ';' expected.
4 import type { Dirent, Entry } from './types';
~~~~~~~~~
node_modules/@nodelib/fs.scandir/out/providers/async.d.ts:2:13 - error TS1005: '=' expected.
2 import type Settings from '../settings';
~~~~~~~~
node_modules/@nodelib/fs.scandir/out/providers/async.d.ts:2:22 - error TS1005: ';' expected.
2 import type Settings from '../settings';
~~~~
node_modules/@nodelib/fs.scandir/out/providers/async.d.ts:2:27 - error TS1005: ';' expected.
2 import type Settings from '../settings';
~~~~~~~~~~~~~
node_modules/@nodelib/fs.scandir/out/providers/async.d.ts:3:13 - error TS1005: '=' expected.
3 import type { Entry } from '../types';
~
node_modules/@nodelib/fs.scandir/out/providers/async.d.ts:3:28 - error TS1005: ';' expected.
3 import type { Entry } from '../types';
~~~~~~~~~~
node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts:3:13 - error TS1005: '=' expected.
3 import type { ErrnoException } from '../types';
m ~
node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts:3:37 - error TS1005: ';' expected.
3 import type { ErrnoException } from '../types';
~~~~~~~~~~
node_modules/@nodelib/fs.stat/out/index.d.ts:1:13 - error TS1005: '=' expected.
1 import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs';
~
node_modules/@nodelib/fs.stat/out/index.d.ts:1:87 - error TS1005: ';' expected.
1 import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs';
~~~~~~~~~~~~~~~
node_modules/@nodelib/fs.stat/out/index.d.ts:4:13 - error TS1005: '=' expected.
4 import type { Stats } from './types';
~
node_modules/@nodelib/fs.stat/out/index.d.ts:4:28 - error TS1005: ';' expected.
4 import type { Stats } from './types';
~~~~~~~~~
node_modules/@nodelib/fs.stat/out/providers/async.d.ts:1:13 - error TS1005: '=' expected.
1 import type Settings from '../settings';
~~~~~~~~
node_modules/@nodelib/fs.stat/out/providers/async.d.ts:1:22 - error TS1005: ';' expected.
1 import type Settings from '../settings';
~~~~
node_modules/@nodelib/fs.stat/out/providers/async.d.ts:1:27 - error TS1005: ';' expected.
1 import type Settings from '../settings';
~~~~~~~~~~~~~
node_modules/@nodelib/fs.stat/out/providers/async.d.ts:2:13 - error TS1005: '=' expected.
2 import type { ErrnoException, Stats } from '../types';
~
node_modules/@nodelib/fs.stat/out/providers/async.d.ts:2:44 - error TS1005: ';' expected.
2 import type { ErrnoException, Stats } from '../types';
~~~~~~~~~~
node_modules/@nodelib/fs.walk/out/index.d.ts:2:13 - error TS1005: '=' expected.
2 import type { Readable } from 'stream';
~
node_modules/@nodelib/fs.walk/out/index.d.ts:2:31 - error TS1005: ';' expected.
2 import type { Readable } from 'stream';
~~~~~~~~
node_modules/@nodelib/fs.walk/out/index.d.ts:3:13 - error TS1005: '=' expected.
3 import type { Dirent, FileSystemAdapter } from '@nodelib/fs.scandir';
~
node_modules/@nodelib/fs.walk/out/index.d.ts:3:48 - error TS1005: ';' expected.
3 import type { Dirent, FileSystemAdapter } from '@nodelib/fs.scandir';
~~~~~~~~~~~~~~~~~~~~~
node_modules/@nodelib/fs.walk/out/index.d.ts:6:13 - error TS1005: '=' expected.
6 import type { Entry } from './types';
~
node_modules/@nodelib/fs.walk/out/index.d.ts:6:28 - error TS1005: ';' expected.
6 import type { Entry } from './types';
~~~~~~~~~
node_modules/@nodelib/fs.walk/out/providers/async.d.ts:2:13 - error TS1005: '=' expected.
2 import type Settings from '../settings';
~~~~~~~~
node_modules/@nodelib/fs.walk/out/providers/async.d.ts:2:22 - error TS1005: ';' expected.
2 import type Settings from '../settings';
~~~~
node_modules/@nodelib/fs.walk/out/providers/async.d.ts:2:27 - error TS1005: ';' expected.
2 import type Settings from '../settings';
~~~~~~~~~~~~~
node_modules/@nodelib/fs.walk/out/providers/async.d.ts:3:13 - error TS1005: '=' expected.
3 import type { Entry, Errno } from '../types';
~
node_modules/@nodelib/fs.walk/out/providers/async.d.ts:3:35 - error TS1005: ';' expected.
3 import type { Entry, Errno } from '../types';
~~~~~~~~~~
node_modules/@nodelib/fs.walk/out/readers/async.d.ts:4:13 - error TS1005: '=' expected.
4 import type Settings from '../settings';
~~~~~~~~
node_modules/@nodelib/fs.walk/out/readers/async.d.ts:4:22 - error TS1005: ';' expected.
4 import type Settings from '../settings';
~~~~
node_modules/@nodelib/fs.walk/out/readers/async.d.ts:4:27 - error TS1005: ';' expected.
4 import type Settings from '../settings';
~~~~~~~~~~~~~
node_modules/@nodelib/fs.walk/out/readers/async.d.ts:5:13 - error TS1005: '=' expected.
5 import type { Entry, Errno } from '../types';
~
node_modules/@nodelib/fs.walk/out/readers/async.d.ts:5:35 - error TS1005: ';' expected.
5 import type { Entry, Errno } from '../types';
~~~~~~~~~~
node_modules/@nodelib/fs.walk/out/readers/reader.d.ts:1:13 - error TS1005: '=' expected.
1 import type Settings from '../settings';
~~~~~~~~
node_modules/@nodelib/fs.walk/out/readers/reader.d.ts:1:22 - error TS1005: ';' expected.
1 import type Settings from '../settings';
~~~~
node_modules/@nodelib/fs.walk/out/readers/reader.d.ts:1:27 - error TS1005: ';' expected.
1 import type Settings from '../settings';
~~~~~~~~~~~~~
node_modules/@nodelib/fs.walk/out/settings.d.ts:2:13 - error TS1005: '=' expected.
2 import type { Entry, Errno } from './types';
~
node_modules/@nodelib/fs.walk/out/settings.d.ts:2:35 - error TS1005: ';' expected.
2 import type { Entry, Errno } from './types';
Expected behavior
No error.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
This is due to stylelint-webpack-plugin
dependency in stark-build. Fixing it to "~2.1.0"
should solve the issue.
Environment
Angular version: 7.x
Stark version: 10.2.x
Alexis Georges commented
Closed by #2852